Browse Source

Fix for VS 7 or lower not having ULL postfix for types

Bill Hoffman 16 years ago
parent
commit
4e123ec1b1
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Utilities/cmlibarchive/libarchive/archive_windows.c

+ 5 - 1
Utilities/cmlibarchive/libarchive/archive_windows.c

@@ -56,8 +56,12 @@
 #include <stdlib.h>
 #include <wchar.h>
 #include <windows.h>
+#if defined(_MSC_VER) &&  _MSC_VER <= 1300
+# define EPOC_TIME   (116444736000000000)
+#else
+# define EPOC_TIME   (116444736000000000ULL)
+#endif
 
-#define EPOC_TIME   (116444736000000000ULL)
 
 struct ustat {
     int64_t     st_atime;