summaryrefslogtreecommitdiff
path: root/tiff
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2015-07-29 07:17:58 -0700
committerRay Johnston <ray.johnston@artifex.com>2015-07-30 11:39:48 -0700
commitab674af32798e8b7ce46bb093acfe756d226cdf6 (patch)
treeab355f3507295060d5c8105336869681589c481a /tiff
parent56045937000ea510c40347bc921a287624ea502d (diff)
downloadghostpdl-ab674af32798e8b7ce46bb093acfe756d226cdf6.tar.gz
Fixes for Windows build with VS 2015.
Apparently snprintf is now available (since VS2014), and we need to make sure and undef bool to avoid conflicts.
Diffstat (limited to 'tiff')
-rw-r--r--tiff/libtiff/tif_config.vc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tiff/libtiff/tif_config.vc.h b/tiff/libtiff/tif_config.vc.h
index c297cf3c4..b97cf51b5 100644
--- a/tiff/libtiff/tif_config.vc.h
+++ b/tiff/libtiff/tif_config.vc.h
@@ -47,7 +47,12 @@
/* Set the native cpu bit order */
#define HOST_FILLORDER FILLORDER_LSB2MSB
-#define snprintf _snprintf
+#if defined(_MSC_VER) && _MSC_VER>=1900
+# define STDC99
+#else
+# define snprintf _snprintf
+#endif
+
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */