diff options
author | Martijn Vels <mvels@google.com> | 2023-02-07 16:27:29 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-07 16:28:15 (GMT) |
commit | ee33b34bec6f9ccb51d3df6a369a6eb8b267447e (patch) | |
tree | 78026cc83579319814dc205dd4d5040a22fb248f /googlemock/include/gmock | |
parent | 3d568bdda59a0b5e50d5f08038eb092b6d88e309 (diff) | |
download | googletest-ee33b34bec6f9ccb51d3df6a369a6eb8b267447e.zip googletest-ee33b34bec6f9ccb51d3df6a369a6eb8b267447e.tar.gz googletest-ee33b34bec6f9ccb51d3df6a369a6eb8b267447e.tar.bz2 |
Fix GTEST_HAS_ABSL define check for [-Werror=undef] compilations
PiperOrigin-RevId: 507788664
Change-Id: Ib8cfbf3102a38e210fdae8a548fd84f0723ccc10
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r-- | googlemock/include/gmock/internal/gmock-port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googlemock/include/gmock/internal/gmock-port.h b/googlemock/include/gmock/internal/gmock-port.h index bc18a25..55ddfb6 100644 --- a/googlemock/include/gmock/internal/gmock-port.h +++ b/googlemock/include/gmock/internal/gmock-port.h @@ -56,7 +56,7 @@ #include "gmock/internal/custom/gmock-port.h" #include "gtest/internal/gtest-port.h" -#if GTEST_HAS_ABSL +#ifdef GTEST_HAS_ABSL #include "absl/flags/declare.h" #include "absl/flags/flag.h" #endif @@ -73,7 +73,7 @@ #define GMOCK_FLAG(name) FLAGS_gmock_##name // Pick a command line flags implementation. -#if GTEST_HAS_ABSL +#ifdef GTEST_HAS_ABSL // Macros for defining flags. #define GMOCK_DEFINE_bool_(name, default_val, doc) \ |