@@ -604,7 +604,7 @@ struct _RTL_CRITICAL_SECTION;
604
604
|| GTEST_OS_QNX || GTEST_OS_FREEBSD || GTEST_OS_NACL)
605
605
#endif // GTEST_HAS_PTHREAD
606
606
607
- #if GTEST_HAS_PTHREAD
607
+ #if GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW
608
608
// gtest-port.h guarantees to #include <pthread.h> when GTEST_HAS_PTHREAD is
609
609
// true.
610
610
# include < pthread.h> // NOLINT
@@ -1441,7 +1441,7 @@ void SetInjectableArgvs(const ::std::vector<testing::internal::string>*
1441
1441
1442
1442
// Defines synchronization primitives.
1443
1443
#if GTEST_IS_THREADSAFE
1444
- # if GTEST_HAS_PTHREAD
1444
+ #if GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW
1445
1445
// Sleeps for (roughly) n milliseconds. This function is only for testing
1446
1446
// Google Test's own constructs. Don't use it in user tests, either
1447
1447
// directly or indirectly.
@@ -1458,7 +1458,7 @@ inline void SleepMilliseconds(int n) {
1458
1458
// Notification has already been imported into the namespace.
1459
1459
// Nothing to do here.
1460
1460
1461
- # elif GTEST_HAS_PTHREAD
1461
+ # elif GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW
1462
1462
// Allows a controller thread to pause execution of newly created
1463
1463
// threads until notified. Instances of this class must be created
1464
1464
// and destroyed in the controller thread.
@@ -1918,7 +1918,7 @@ class ThreadLocal : public ThreadLocalBase {
1918
1918
GTEST_DISALLOW_COPY_AND_ASSIGN_ (ThreadLocal);
1919
1919
};
1920
1920
1921
- # elif GTEST_HAS_PTHREAD
1921
+ # elif GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW
1922
1922
1923
1923
// MutexBase and Mutex implement mutex on pthreads-based platforms.
1924
1924
class MutexBase {
0 commit comments