diff options
author | Brad King <brad.king@kitware.com> | 2009-11-11 09:19:34 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-11-11 09:19:34 -0500 |
commit | 94b7d844be306d045eccf78722181a2a591c9a07 (patch) | |
tree | 00d8d35f9f6f9ec8e109c6c93d46c071a643eab4 /libarchive/archive_entry_copy_bhfi.c | |
parent | be2f791b2d27fcf38129e0b6f4e053451c6762b8 (diff) | |
download | libarchive-94b7d844be306d045eccf78722181a2a591c9a07.tar.gz |
Use macro for 64-bit integer literal suffixes
Some compilers, such as Borland and VS 6, define __int64 instead of the
more standard long long. Integer literals of type __int64 use the
suffix 'i64' instead of 'll'. We define the helper macros
ARCHIVE_LITERAL_LL(n)
ARCHIVE_LITERAL_ULL(n)
for 'long long' and 'unsigned long long' literals. The macros use the
proper suffix for the current compiler.
SVN-Revision: 1635
Diffstat (limited to 'libarchive/archive_entry_copy_bhfi.c')
-rw-r--r-- | libarchive/archive_entry_copy_bhfi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libarchive/archive_entry_copy_bhfi.c b/libarchive/archive_entry_copy_bhfi.c index 9ad181e2..8339032c 100644 --- a/libarchive/archive_entry_copy_bhfi.c +++ b/libarchive/archive_entry_copy_bhfi.c @@ -26,11 +26,12 @@ #include "archive_platform.h" __FBSDID("$FreeBSD$"); +#include "archive_private.h" #include "archive_entry.h" #if defined(_WIN32) && !defined(__CYGWIN__) -#define EPOC_TIME (116444736000000000ULL) +#define EPOC_TIME ARCHIVE_LITERAL_ULL(116444736000000000) __inline static void fileTimeToUtc(const FILETIME *filetime, time_t *time, long *ns) |