ref: e2e186837bedf8211405c14b75c54849241193cd
parent: aaed7c2e751f82d585f9b4d94601b48bfd196b6f
author: Ralph Giles <giles@ghostscript.com>
date: Mon Mar 30 13:45:50 EDT 2009
Only define vnsprintf on MSVC versions prior to 9. Visual Studio 2008 defines vnsprintf() in its stdio.h and our mapping from _vnsprintf() conflicts. After a patch by Michael Vrhel, ghostscript svn commits 8734 and 8735.
--- a/config_win32.h
+++ b/config_win32.h
@@ -31,7 +31,11 @@
typedef unsigned int uint32_t;
/* no uint64_t */
-# define vsnprintf _vsnprintf
+# if defined(_MSC_VER)
+# if _MSC_VER < 1500 /* VS 2008 has vsnprintf */
+# define vsnprintf _vsnprintf
+# endif
+# endif
# define snprintf _snprintf
#endif /* _MSC_VER */