From 2e318c11d70a027dd66ec581379d0b20acb6aca6 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Tue, 8 May 2012 08:31:54 +0000 Subject: Updated interface --- src/httrack-library.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/httrack-library.h b/src/httrack-library.h index 39b00c0..7654e02 100644 --- a/src/httrack-library.h +++ b/src/httrack-library.h @@ -228,6 +228,9 @@ HTSEXT_API int hts_unlink_utf8(const char *pathname); HTSEXT_API int hts_rename_utf8(const char *oldpath, const char *newpath); #define MKDIR(F) hts_mkdir_utf8(F) HTSEXT_API int hts_mkdir_utf8(const char *pathname); +#define UTIME(A,B) hts_utime_utf8(A,B) +typedef struct _utimbuf STRUCT_UTIMBUF; +HTSEXT_API int hts_utime_utf8(const char *filename, const STRUCT_UTIMBUF *times); #else #define FOPEN fopen #define STAT stat @@ -235,6 +238,8 @@ typedef struct stat STRUCT_STAT; #define UNLINK unlink #define RENAME rename #define MKDIR(F) mkdir(F, HTS_ACCESS_FOLDER) +typedef struct utimbuf STRUCT_UTIMBUF; +#define UTIME(A,B) utime(A,B) #endif #define HTS_DEF_FILEAPI #endif -- cgit v1.2.3