[gs-cvs] rev 8734 - trunk/gs/jbig2dec
mvrhel at ghostscript.com
mvrhel at ghostscript.com
Thu May 15 09:12:18 PDT 2008
Author: mvrhel
Date: 2008-05-15 09:12:17 -0700 (Thu, 15 May 2008)
New Revision: 8734
Modified:
trunk/gs/jbig2dec/config_win32.h
Log:
Minor change in JBIG configuration file related to using Visual Studio Version 9 (2008). stdio.h has a definition for vsnprintf which conflicts with the define in config_win32.h
Modified: trunk/gs/jbig2dec/config_win32.h
===================================================================
--- trunk/gs/jbig2dec/config_win32.h 2008-05-15 00:00:24 UTC (rev 8733)
+++ trunk/gs/jbig2dec/config_win32.h 2008-05-15 16:12:17 UTC (rev 8734)
@@ -34,7 +34,12 @@
typedef unsigned int uint32_t;
/* no uint64_t */
-# define vsnprintf _vsnprintf
+#if defined(_MSC_VER)
+ #if _MSC_VER < 9 /* Visual Studio 2008 has definition for vsnprintf */
+ #define vsnprintf _vsnprintf
+ #endif
+#endif
+
# define snprintf _snprintf
#endif /* _MSC_VER */
More information about the gs-cvs
mailing list