summaryrefslogtreecommitdiff
path: root/Utilities/cmlibarchive/libarchive/archive_entry_copy_bhfi.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-11-01 12:41:17 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2009-11-01 12:41:17 -0500
commit8ba2a4040484d0aa1be26ad8fde3d7109a7c2fb1 (patch)
tree735641b93f1534495f0d512d42ec02617532497f /Utilities/cmlibarchive/libarchive/archive_entry_copy_bhfi.c
parente2d9595ae9adb0a7446b186b19d52099eceb7d41 (diff)
downloadcmake-8ba2a4040484d0aa1be26ad8fde3d7109a7c2fb1.tar.gz
Fixes for borland, compiles with lots of warnings, but compiles, might fix vs70 again too.
Diffstat (limited to 'Utilities/cmlibarchive/libarchive/archive_entry_copy_bhfi.c')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_entry_copy_bhfi.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_entry_copy_bhfi.c b/Utilities/cmlibarchive/libarchive/archive_entry_copy_bhfi.c
index 50c0817349..9a64880891 100644
--- a/Utilities/cmlibarchive/libarchive/archive_entry_copy_bhfi.c
+++ b/Utilities/cmlibarchive/libarchive/archive_entry_copy_bhfi.c
@@ -28,9 +28,13 @@ __FBSDID("$FreeBSD$");
#include "archive_entry.h"
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(__BORLANDC__) || (defined(_MSC_VER) && _MSC_VER <= 1300)
+# define EPOC_TIME (116444736000000000)
+#else
+# define EPOC_TIME (116444736000000000ULL)
+#endif
-#define EPOC_TIME (116444736000000000ULL)
__inline static void
fileTimeToUtc(const FILETIME *filetime, time_t *time, long *ns)