提交 03fb85f1 编写于 作者: A Adeel

update fix for #8105 (compiling with mingw32)

taken from https://github.com/google/googletest/pull/856
上级 3450528f
......@@ -720,7 +720,7 @@
# include <io.h>
# endif
// In order to avoid having to include <windows.h>, use forward declaration
# if GTEST_OS_WINDOWS_MINGW
#if GTEST_OS_WINDOWS_MINGW && !defined(__MINGW64_VERSION_MAJOR)
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
// separate (equivalent) structs, instead of using typedef
typedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册