summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfwarmerdam <fwarmerdam>2011-03-21 21:09:19 +0000
committerfwarmerdam <fwarmerdam>2011-03-21 21:09:19 +0000
commit1460253d342fe13661a179620652b3b37e9c4804 (patch)
treeac3b0accb4e2f01a5f9367188090496c9b8301eb
parent107131f390a51e2e4c6cfda8557edd5daa762034 (diff)
downloadlibtiff-1460253d342fe13661a179620652b3b37e9c4804.tar.gz
avoid declaring uint64/int64 on AIX where it is already available (#2301)
-rw-r--r--ChangeLog5
-rw-r--r--libtiff/tiffiop.h7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a81e6537..1ac7deb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-2011-03-12 Frank Warmerdam <warmerdam@pobox.com>
+2011-03-21 Frank Warmerdam <warmerdam@pobox.com>
+
+ * libtiff/tiffiop.h: avoid declaring int64/uint64 on AIX with XLC
+ where they are already available. (#2301)
* libtiff/tif_thunder.c: Correct potential buffer overflow with
thunder encoded files with wrong bitspersample set. The libtiff
diff --git a/libtiff/tiffiop.h b/libtiff/tiffiop.h
index a064039f..f65f8550 100644
--- a/libtiff/tiffiop.h
+++ b/libtiff/tiffiop.h
@@ -1,4 +1,4 @@
-/* $Id: tiffiop.h,v 1.51.2.6 2010-06-12 02:55:16 bfriesen Exp $ */
+/* $Id: tiffiop.h,v 1.51.2.7 2011-03-21 21:09:19 fwarmerdam Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -59,10 +59,13 @@ extern void *lfind(const void *, const void *, size_t *, size_t,
/*
Libtiff itself does not require a 64-bit type, but bundled TIFF
- utilities may use it.
+ utilities may use it.
*/
+
+#if !defined(__xlC__) && !defined(__xlc__) // Already defined there (#2301)
typedef TIFF_INT64_T int64;
typedef TIFF_UINT64_T uint64;
+#endif
#include "tiffio.h"
#include "tif_dir.h"