提交 82dd9251 编写于 作者: T tbell

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
上级 a2bb9444
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册