8137329: [windows] Build broken on VS2010 after "8046148: JEP 158: Unified JVM Logging"
authorstuefe
Thu, 01 Oct 2015 09:30:19 +0200
changeset 33137 81433d2db1c9
parent 33130 a776072941e8
child 33138 b32f4ad40409
8137329: [windows] Build broken on VS2010 after "8046148: JEP 158: Unified JVM Logging" Reviewed-by: simonis, ihse, prr, goetz, dcubed
hotspot/src/share/vm/utilities/globalDefinitions_visCPP.hpp
--- a/hotspot/src/share/vm/utilities/globalDefinitions_visCPP.hpp	Wed Oct 07 15:06:52 2015 +0200
+++ b/hotspot/src/share/vm/utilities/globalDefinitions_visCPP.hpp	Thu Oct 01 09:30:19 2015 +0200
@@ -171,6 +171,12 @@
 #define strdup _strdup
 #endif
 
+// Visual Studio 2013 introduced strtoull(); before, one has to use _strtoui64() instead.
+#if _MSC_VER < 1800
+#define strtoull _strtoui64
+#endif
+
+
 #pragma warning( disable : 4100 ) // unreferenced formal parameter
 #pragma warning( disable : 4127 ) // conditional expression is constant
 #pragma warning( disable : 4514 ) // unreferenced inline function has been removed