Skip to content

Commit 03fb85f

Browse files
committed
update fix for opencv#8105 (compiling with mingw32)
taken from google/googletest#856
1 parent 3450528 commit 03fb85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ts/include/opencv2/ts/ts_gtest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@
720720
# include <io.h>
721721
# endif
722722
// In order to avoid having to include <windows.h>, use forward declaration
723-
# if GTEST_OS_WINDOWS_MINGW
723+
#if GTEST_OS_WINDOWS_MINGW && !defined(__MINGW64_VERSION_MAJOR)
724724
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
725725
// separate (equivalent) structs, instead of using typedef
726726
typedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;

0 commit comments

Comments
 (0)