6899737: JDK build fails in make/java/jli because of _vsnprintf macro redefinition
authortbell
Fri, 18 Dec 2009 09:40:34 -0800
changeset 4596 2512e93affdf
parent 4423 4061c66ba1af
child 4597 a54861499f09
6899737: JDK build fails in make/java/jli because of _vsnprintf macro redefinition Summary: Use stdio.h instead when building with Visual Studio 2008 or later Reviewed-by: art, ohair
jdk/src/share/native/java/util/zip/zlib-1.2.3/zutil.h
--- a/jdk/src/share/native/java/util/zip/zlib-1.2.3/zutil.h	Wed Jul 05 17:04:28 2017 +0200
+++ b/jdk/src/share/native/java/util/zip/zlib-1.2.3/zutil.h	Fri Dec 18 09:40:34 2009 -0800
@@ -220,7 +220,8 @@
 #  endif
 #  ifdef WIN32
      /* In Win32, vsnprintf is available as the "non-ANSI" _vsnprintf. */
-#    if !defined(vsnprintf) && !defined(NO_vsnprintf)
+#    if !defined(vsnprintf) && !defined(NO_vsnprintf) && (!defined(_MSC_VER) || (_MSC_VER < 1500))
+       /* Only needed before Visual Studio 2008 */
 #      define vsnprintf _vsnprintf
 #    endif
 #  endif