| 1 |
--- libtiff/tif_config.h.orig 2019-08-29 15:36:35.000000000 +0200 |
| 2 |
+++ libtiff/tif_config.h 2019-08-29 15:08:43.000000000 +0200 |
| 3 |
@@ -255,7 +255,11 @@ |
| 4 |
#define SIZEOF_SIGNED_INT 4 |
| 5 |
|
| 6 |
/* The size of `signed long', as computed by sizeof. */ |
| 7 |
+#ifdef __LP64__ |
| 8 |
#define SIZEOF_SIGNED_LONG 8 |
| 9 |
+#else |
| 10 |
+#define SIZEOF_SIGNED_LONG 4 |
| 11 |
+#endif |
| 12 |
|
| 13 |
/* The size of `signed long long', as computed by sizeof. */ |
| 14 |
#define SIZEOF_SIGNED_LONG_LONG 8 |
| 15 |
@@ -264,16 +268,28 @@ |
| 16 |
#define SIZEOF_SIGNED_SHORT 2 |
| 17 |
|
| 18 |
/* The size of `size_t', as computed by sizeof. */ |
| 19 |
+#ifdef __LP64__ |
| 20 |
#define SIZEOF_SIZE_T 8 |
| 21 |
+#else |
| 22 |
+#define SIZEOF_SIZE_T 4 |
| 23 |
+#endif |
| 24 |
|
| 25 |
/* The size of `unsigned char *', as computed by sizeof. */ |
| 26 |
+#ifdef __LP64__ |
| 27 |
#define SIZEOF_UNSIGNED_CHAR_P 8 |
| 28 |
+#else |
| 29 |
+#define SIZEOF_UNSIGNED_CHAR_P 4 |
| 30 |
+#endif |
| 31 |
|
| 32 |
/* The size of `unsigned int', as computed by sizeof. */ |
| 33 |
#define SIZEOF_UNSIGNED_INT 4 |
| 34 |
|
| 35 |
/* The size of `unsigned long', as computed by sizeof. */ |
| 36 |
+#ifdef __LP64__ |
| 37 |
#define SIZEOF_UNSIGNED_LONG 8 |
| 38 |
+#else |
| 39 |
+#define SIZEOF_UNSIGNED_LONG 4 |
| 40 |
+#endif |
| 41 |
|
| 42 |
/* The size of `unsigned long long', as computed by sizeof. */ |
| 43 |
#define SIZEOF_UNSIGNED_LONG_LONG 8 |
| 44 |
@@ -307,10 +323,18 @@ |
| 45 |
#define TIFF_INT32_T signed int |
| 46 |
|
| 47 |
/* Signed 64-bit type formatter */ |
| 48 |
+#ifdef __LP64__ |
| 49 |
#define TIFF_INT64_FORMAT "%ld" |
| 50 |
+#else |
| 51 |
+#define TIFF_INT64_FORMAT "%lld" |
| 52 |
+#endif |
| 53 |
|
| 54 |
/* Signed 64-bit type */ |
| 55 |
+#ifdef __LP64__ |
| 56 |
#define TIFF_INT64_T signed long |
| 57 |
+#else |
| 58 |
+#define TIFF_INT64_T signed long long |
| 59 |
+#endif |
| 60 |
|
| 61 |
/* Signed 8-bit type */ |
| 62 |
#define TIFF_INT8_T signed char |
| 63 |
@@ -343,10 +367,18 @@ |
| 64 |
#define TIFF_UINT32_T unsigned int |
| 65 |
|
| 66 |
/* Unsigned 64-bit type formatter */ |
| 67 |
+#ifdef __LP64__ |
| 68 |
#define TIFF_UINT64_FORMAT "%lu" |
| 69 |
+#else |
| 70 |
+#define TIFF_UINT64_FORMAT "%llu" |
| 71 |
+#endif |
| 72 |
|
| 73 |
/* Unsigned 64-bit type */ |
| 74 |
+#ifdef __LP64__ |
| 75 |
#define TIFF_UINT64_T unsigned long |
| 76 |
+#else |
| 77 |
+#define TIFF_UINT64_T unsigned long long |
| 78 |
+#endif |
| 79 |
|
| 80 |
/* Unsigned 8-bit type */ |
| 81 |
#define TIFF_UINT8_T unsigned char |