Skip to content

Commit 6e4f0a4

Browse files
Undefine ERROR on Windows platform
On Windows, ERROR is defined as 0 at wingdi.h and other compilers provided by MSYS2(mingw-w64-clang-*) honor this definition. This collides with our definition log::ERROR in report.h. Currently ERROR is undefined only when _MSCV is used. This commits undefines ERROR on all Windows platforms.
1 parent 686c999 commit 6e4f0a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

report/include/scp/report.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include <fmt/format.h>
4242
#endif
4343

44-
#if defined(_MSC_VER) && defined(ERROR)
44+
#if defined(_WIN32) && defined(ERROR)
4545
#undef ERROR
4646
#endif
4747

0 commit comments

Comments
 (0)