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
--- 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