summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/libarchive/archive_entry.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-04 18:10:11 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-04 18:10:11 (GMT)
commitc9a9c88634c98174d9fae712a31327cbd8d0963d (patch)
tree64eff28a03a5ca2992ca9d7b66d7c8c3be74416e /Utilities/cmlibarchive/libarchive/archive_entry.h
parent12baf7b7f18fcc13db5542c116d59bdc056595d8 (diff)
downloadCMake-c9a9c88634c98174d9fae712a31327cbd8d0963d.zip
CMake-c9a9c88634c98174d9fae712a31327cbd8d0963d.tar.gz
CMake-c9a9c88634c98174d9fae712a31327cbd8d0963d.tar.bz2
libarchive: Fix Borland integer constants
Some versions of Borland provide <stdint.h>, so we use it when possible. However, the 64-bit signed and unsigned integer min/max constants cause overflow warnings from Borland itself! For these constants we fall back on our default definitions.
Diffstat (limited to 'Utilities/cmlibarchive/libarchive/archive_entry.h')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_entry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_entry.h b/Utilities/cmlibarchive/libarchive/archive_entry.h
index 10ca1e8..b1e24c2 100644
--- a/Utilities/cmlibarchive/libarchive/archive_entry.h
+++ b/Utilities/cmlibarchive/libarchive/archive_entry.h
@@ -58,7 +58,7 @@
#else
# include <unistd.h>
#endif
-#if defined(__BORLANDC__)
+#if defined(__BORLANDC__) && !defined(HAVE_SYS_TYPES_H)
#define __LA_INT64_T __int64
#else
#define __LA_INT64_T int64_t