src/hotspot/share/utilities/globalDefinitions_xlc.hpp
changeset 57975 a333fdeb8de0
parent 53730 1d942423516c
child 58124 dc792fa77da0
--- a/src/hotspot/share/utilities/globalDefinitions_xlc.hpp	Sat Aug 31 09:18:40 2019 -0700
+++ b/src/hotspot/share/utilities/globalDefinitions_xlc.hpp	Fri Aug 30 09:37:41 2019 +0200
@@ -51,11 +51,13 @@
 
 #include <stdint.h>
 
-// __IBMCPP__ is not defined any more with xlclang++
-#ifdef __IBMCPP__
-#if __IBMCPP__ < 1200
-#error "xlc < 12 not supported"
-#endif
+// check for xlc16 or higher
+#ifdef __ibmxl_version__
+  #if __ibmxl_version__ < 16
+  #error "xlc < 16 not supported"
+  #endif
+#else
+  #error "xlc < 16 not supported, macro __ibmxl_version__ not found"
 #endif
 
 #ifndef _AIX