Skip to content

Commit 1a562b2

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

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)