diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-10-30 20:36:46 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-10-30 20:36:46 (GMT) |
commit | 4e123ec1b1aa60e5db5abfc86824f9d7a28afcaf (patch) | |
tree | abe5b6851ea72c5d7b58faa2fcfa8455fddd2e59 | |
parent | cfa593232125f78ae4f41222ba3e2ca662706e6b (diff) | |
download | CMake-4e123ec1b1aa60e5db5abfc86824f9d7a28afcaf.zip CMake-4e123ec1b1aa60e5db5abfc86824f9d7a28afcaf.tar.gz CMake-4e123ec1b1aa60e5db5abfc86824f9d7a28afcaf.tar.bz2 |
Fix for VS 7 or lower not having ULL postfix for types
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_windows.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_windows.c b/Utilities/cmlibarchive/libarchive/archive_windows.c index 0a39ab1..ec97d11 100644 --- a/Utilities/cmlibarchive/libarchive/archive_windows.c +++ b/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; |