summaryrefslogtreecommitdiff
path: root/tiff/test/long_tag.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-05-10 17:05:54 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-05-11 09:33:06 +0100
commitb6d377080747ed63f2742bcd9c32bc67255626a1 (patch)
tree1abfea68f4ea1b2bd2196f5907ca0b83accaf0a5 /tiff/test/long_tag.c
parent73c17cef9cc0be38219f533a98e35e0d693c3821 (diff)
downloadghostpdl-b6d377080747ed63f2742bcd9c32bc67255626a1.tar.gz
Update libtiff to 4.3.0
Changes to libtiff for gpdl. 1) Ensure that libtiff doesn't mess with 'boolean' in GS builds on Windows. Without this, the jpeg structures used by our JPEG lib build are different in size when called from gs and libtiff, resulting in runtime errors. 2) Update libtiff so that it can correctly call into the jpeg library so that memory operations happen from our pools, not malloc/free. Slightly horrid in that this is more complex with OJPEG than JPEG files. Fix some compiler warnings stemming from libtiff update Various tweaks for libtiff 4.3.0 to build on Windows Mainly "importing" tif_config.vc.h and tiffconf.vc.h - the tiff build now created those with cmake. Then typedef'ing several C99 ***_t style types. Finally defining matching C99 PRI* printf formatting macros
Diffstat (limited to 'tiff/test/long_tag.c')
-rw-r--r--tiff/test/long_tag.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tiff/test/long_tag.c b/tiff/test/long_tag.c
index 4bfdf8051..79f0235ca 100644
--- a/tiff/test/long_tag.c
+++ b/tiff/test/long_tag.c
@@ -37,22 +37,22 @@
#include "tiffio.h"
-extern int CheckLongField(TIFF *, ttag_t, uint32);
+extern int CheckLongField(TIFF *, ttag_t, uint32_t);
const char *filename = "long_test.tiff";
static struct Tags {
ttag_t tag;
short count;
- uint32 value;
+ uint32_t value;
} long_tags[] = {
{ TIFFTAG_SUBFILETYPE, 1, FILETYPE_REDUCEDIMAGE|FILETYPE_PAGE|FILETYPE_MASK }
};
#define NTAGS (sizeof (long_tags) / sizeof (long_tags[0]))
-const uint32 width = 1;
-const uint32 length = 1;
-const uint32 rows_per_strip = 1;
+const uint32_t width = 1;
+const uint32_t length = 1;
+const uint32_t rows_per_strip = 1;
int
main(int argc, char **argv)