Skip to content

Commit f7fd0a9

Browse files
committed
fix: Build of gtest library on Windows with MSYS2 mingw64 subsystem
1 parent 78f2532 commit f7fd0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/basis/test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#ifdef GTEST_HAS_PTHREAD
4545
# undef GTEST_HAS_PTHREAD
4646
#endif
47-
#if HAVE_PTHREAD
47+
#if HAVE_PTHREAD && !(defined(__MINGW__) || defined(__MINGW32__))
4848
# define GTEST_HAS_PTHREAD 1
4949
#else
5050
# define GTEST_HAS_PTHREAD 0

0 commit comments

Comments
 (0)