summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@google.com>2023-03-03 23:59:04 (GMT)
committerCopybara-Service <copybara-worker@google.com>2023-03-06 15:15:32 (GMT)
commit7b1ced0682af5fb10e4619457552cd11936c294a (patch)
tree78e49492563a42812b443d2845c02dc1efdf78fe /googletest/include
parenta08c03c5f52802c50a541d7283be31a4c3177807 (diff)
downloadgoogletest-7b1ced0682af5fb10e4619457552cd11936c294a.zip
googletest-7b1ced0682af5fb10e4619457552cd11936c294a.tar.gz
googletest-7b1ced0682af5fb10e4619457552cd11936c294a.tar.bz2
Only define GTEST_IS_THREADSAFE to 1, not 0
According to the comments, "Feature-indicating macros", such as GTEST_IS_THREADSAFE should be defined to 1 when supported and otherwise undefined (never 0). PiperOrigin-RevId: 513944266 Change-Id: I0f5c8bed107a5f20e957ec7c70339540ca2fe831
Diffstat (limited to 'googletest/include')
-rw-r--r--googletest/include/gtest/internal/gtest-port.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index ba5e9bc..b757c7d 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -790,8 +790,6 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
!defined(GTEST_OS_WINDOWS_RT)) || \
GTEST_HAS_PTHREAD)
#define GTEST_IS_THREADSAFE 1
-#else
-#define GTEST_IS_THREADSAFE 0
#endif
#endif // GTEST_IS_THREADSAFE