6899737: JDK build fails in make/java/jli because of _vsnprintf macro redefinition
Use stdio.h instead when building with Visual Studio 2008 or later Reviewed-by: art, ohair
This commit is contained in:
parent
9cb97e1c64
commit
2c4310ffa4
@ -220,7 +220,8 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user