Skip to content

Commit

Permalink
revert compilation on MinGW with pthread
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonf committed Feb 3, 2019
1 parent 954439f commit 9549488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/gtest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ endmacro()
# Google Mock. You can tweak these definitions to suit your need. A
# variable's value is empty before it's explicitly assigned to.
macro(config_compiler_and_linker)
if (NOT gtest_disable_pthreads)
if (NOT gtest_disable_pthreads AND NOT MINGW)
# Defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT.
find_package(Threads)
endif()
Expand Down
2 changes: 1 addition & 1 deletion tests/gtest/include/gtest/internal/gtest-port.h
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ class GTEST_API_ Notification {
};
# endif // GTEST_HAS_NOTIFICATION_

# if GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW
# if GTEST_HAS_PTHREAD

// As a C-function, ThreadFuncWithCLinkage cannot be templated itself.
// Consequently, it cannot select a correct instantiation of ThreadWithParam
Expand Down

0 comments on commit 9549488

Please sign in to comment.