8224945: googlemock update breaks the build of arm32 and ppc
authoriignatyev
Wed, 29 May 2019 11:54:26 -0700
changeset 55091 c58772f2dbce
parent 55090 c1ad2862d0dd
child 55092 b034d2dee5fc
8224945: googlemock update breaks the build of arm32 and ppc Reviewed-by: dholmes, simonis
test/hotspot/gtest/unittest.hpp
--- a/test/hotspot/gtest/unittest.hpp	Wed May 29 09:53:28 2019 -0700
+++ b/test/hotspot/gtest/unittest.hpp	Wed May 29 11:54:26 2019 -0700
@@ -38,6 +38,16 @@
   #undef Log
 #endif
 
+// R macro is defined by src/hotspot/cpu/arm/register_arm.hpp, F$n are defined
+// in ppc/register_ppc.hpp, these macros conflict with typenames used in
+// internal googlemock templates. As the macros are not expected to be used by
+// any of tests directly, and this header file is supposed to be the last
+// include, we just undefine it; if/when it changes, we will need to re-define
+// the macros after the following includes.
+#undef R
+#undef F1
+#undef F2
+
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"