shithub: jbig2

Download patch

ref: 7496658740e6dc94ce794e22eaea85c697f1341a
parent: 13d923fd18df6c103e130da59ce4e1bfd847d0ad
author: Ray Johnston <ray.johnston@artifex.com>
date: Wed Jul 29 03:17:58 EDT 2015

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.

--- a/config_win32.h
+++ b/config_win32.h
@@ -41,6 +41,11 @@
 #    define vsnprintf _vsnprintf
 #   endif
 #  endif
-#  define snprintf _snprintf
+
+#  if defined(_MSC_VER) && _MSC_VER>=1900 /* VS 2014 and later have (finally) snprintf */
+#    define STDC99
+#  else
+#    define snprintf _snprintf
+#  endif
 
 #endif /* _MSC_VER */