summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Lindén <dev@robinlinden.eu>2018-11-10 14:40:57 (GMT)
committerRobin Lindén <dev@robinlinden.eu>2018-11-10 14:40:57 (GMT)
commita3a42514f1a9fb63db67efaa0e1eed6fe29b3792 (patch)
treeda2bcec3437d23a5ff953ee4339c4e46071633df
parentc43603f288f40f21998a98f7e74c4206323f417e (diff)
downloadgoogletest-a3a42514f1a9fb63db67efaa0e1eed6fe29b3792.zip
googletest-a3a42514f1a9fb63db67efaa0e1eed6fe29b3792.tar.gz
googletest-a3a42514f1a9fb63db67efaa0e1eed6fe29b3792.tar.bz2
Define GTEST_DISABLE_MSC_WARNINGS_PUSH/POP for all compilers
-rw-r--r--googletest/include/gtest/internal/gtest-port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index 998be27..ff1a336 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -310,6 +310,10 @@
__pragma(warning(disable: warnings))
# define GTEST_DISABLE_MSC_WARNINGS_POP_() \
__pragma(warning(pop))
+#else
+// Not all compilers are MSVC
+# define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
+# define GTEST_DISABLE_MSC_WARNINGS_POP_()
#endif
// Clang on Windows does not understand MSVC's pragma warning.