summaryrefslogtreecommitdiff
path: root/libtiff/tif_config.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'libtiff/tif_config.h.in')
-rw-r--r--libtiff/tif_config.h.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/libtiff/tif_config.h.in b/libtiff/tif_config.h.in
index 6a543463..b15b2b04 100644
--- a/libtiff/tif_config.h.in
+++ b/libtiff/tif_config.h.in
@@ -150,10 +150,19 @@
/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES
+#if !defined(__MINGW32__)
+# define TIFF_SIZE_FORMAT "zu"
+#endif
#if SIZEOF_SIZE_T == 8
# define TIFF_SSIZE_FORMAT PRId64
+# if defined(__MINGW32__)
+# define TIFF_SIZE_FORMAT PRIu64
+# endif
#elif SIZEOF_SIZE_T == 4
# define TIFF_SSIZE_FORMAT PRId32
+# if defined(__MINGW32__)
+# define TIFF_SIZE_FORMAT PRIu32
+# endif
#else
# error "Unsupported size_t size; please submit a bug report"
-#endif \ No newline at end of file
+#endif