summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/libarchive/archive_entry.h
diff options
context:
space:
mode:
authorJiri Malak <malak.jiri@gmail.com>2014-03-04 15:35:44 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-09 14:36:21 (GMT)
commit52285a993b714c81d8d79fddde2631612dab335c (patch)
treef5b5c9ff770b4270271035c5721cf7c22f308b60 /Utilities/cmlibarchive/libarchive/archive_entry.h
parentad9f0d831e6522d9606bab7ae08559cebeed83ce (diff)
downloadCMake-52285a993b714c81d8d79fddde2631612dab335c.zip
CMake-52285a993b714c81d8d79fddde2631612dab335c.tar.gz
CMake-52285a993b714c81d8d79fddde2631612dab335c.tar.bz2
libarchive: Fix compliation with Open Watcom
Diffstat (limited to 'Utilities/cmlibarchive/libarchive/archive_entry.h')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_entry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_entry.h b/Utilities/cmlibarchive/libarchive/archive_entry.h
index 85ea885..ae6a76e 100644
--- a/Utilities/cmlibarchive/libarchive/archive_entry.h
+++ b/Utilities/cmlibarchive/libarchive/archive_entry.h
@@ -48,7 +48,7 @@
#endif
/* Get a suitable 64-bit integer type. */
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
# define __LA_INT64_T __int64
#else
#include <unistd.h>
@@ -63,7 +63,7 @@
#if ARCHIVE_VERSION_NUMBER >= 3999000
/* Switch to plain 'int' for libarchive 4.0. It's less broken than 'mode_t' */
# define __LA_MODE_T int
-#elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(__BORLANDC__)
+#elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
# define __LA_MODE_T unsigned short
#else
# define __LA_MODE_T mode_t