< prev index next >
hotspot/src/share/vm/utilities/globalDefinitions_visCPP.hpp
Print this page
@@ -193,17 +193,19 @@
#endif // CHECK_UNHANDLED_OOPS
#if _MSC_VER >= 1400
#pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE
#endif
+#if _MSC_VER <= 1800
inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) {
// If number of characters written == count, Windows doesn't write a
// terminating NULL, so we do it ourselves.
int ret = _vsnprintf(buf, count, fmt, argptr);
if (count > 0) buf[count-1] = '\0';
return ret;
}
+#endif
// Portability macros
#define PRAGMA_INTERFACE
#define PRAGMA_IMPLEMENTATION
#define PRAGMA_IMPLEMENTATION_(arg)
< prev index next >