]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add compatibility with old #defines 558/head
authorPhilippe Daouadi <pdaouadi@aldebaran.com>
Tue, 9 Jun 2015 07:52:49 +0000 (09:52 +0200)
committerPhilippe Daouadi <pdaouadi@aldebaran.com>
Tue, 9 Jun 2015 07:52:49 +0000 (09:52 +0200)
libarchive/archive.h
libarchive/archive_entry.h

index 98397a93e3e469e378ab5aa9a8f4fad6f2a36f90..540aeaca4f4eb247650e2429a404f8fafce26295 100644 (file)
 # include <inttypes.h>
 #endif
 
+#if ARCHIVE_VERSION_NUMBER < 4000000
+// also defined in archive_entry.h, don't redefine
+#if !defined(__LA_INT64_T)
+#define __LA_INT64_T la_int64_t
+#endif
+#define __LA_SSIZE_T la_ssize_t
+#endif
+
 /* Get appropriate definitions of standard POSIX-style types. */
 /* These should match the types used in 'struct stat' */
 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
index b42fad6d5c278704d13b3cef8d6e59e6a293c8da..21a0f30fdb6bb3f4deab506204734a95452aae00 100644 (file)
 #include <windows.h>
 #endif
 
+#if ARCHIVE_VERSION_NUMBER < 4000000
+// also defined in archive.h, don't redefine
+#if !defined(__LA_INT64_T)
+#define __LA_INT64_T la_int64_t
+#endif
+#endif
+
 /* Get a suitable 64-bit integer type. */
 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
 typedef __int64 la_int64_t;