diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-05-08 08:31:54 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-05-08 08:31:54 +0000 |
commit | 2e318c11d70a027dd66ec581379d0b20acb6aca6 (patch) | |
tree | 1b8e66b715585726f931185aa83d35224b1f74ac | |
parent | 9310c1fb44982fea5c678e8f2b2045619af9e4b7 (diff) |
Updated interface
-rw-r--r-- | src/httrack-library.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |