Skip to content

Commit cb4800e

Browse files
helmesjokris-jusiak
authored andcommitted
mingw-gcc doesn't not define min/max in its <Windows.h>, so the preprocessor check in 'win_compat_test.cpp' needs to be excluded in this case.
1 parent 0f8d85d commit cb4800e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/ut/win_compat_test.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@
99
// ensure no conflict between `Windows.h` and `ut.hpp`
1010
#include <Windows.h>
1111

12-
#if not defined(min) || not defined(max)
13-
#error 'min' and 'max' should be defined
12+
#ifndef __MINGW32__
13+
#if not defined(min) || not defined(max)
14+
#error 'min' and 'max' should be defined
15+
#endif
1416
#endif
1517

1618
#include "boost/ut.hpp"
1719

18-
#if not defined(min) || not defined(max)
19-
#error 'min' and 'max' should still be defined
20+
#ifndef __MINGW32__
21+
#if not defined(min) || not defined(max)
22+
#error 'min' and 'max' should still be defined
23+
#endif
2024
#endif
2125

2226
namespace ut = boost::ut;

0 commit comments

Comments
 (0)