Skip to content

Commit e2b921d

Browse files
report.h: Undefine ERROR macro definition
Due to ERROR being a macro defined on Windows platforms, we need to #undef it to avoid a collision with log:ERROR.
1 parent 686c999 commit e2b921d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

report/include/scp/report.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
#include <fmt/format.h>
4242
#endif
4343

44-
#if defined(_MSC_VER) && defined(ERROR)
44+
// Due to ERROR being a macro defined on Windows platforms,
45+
// we need to #undef it to avoid a collision with log:ERROR.
4546
#undef ERROR
46-
#endif
4747

4848
namespace sc_core {
4949
const sc_core::sc_verbosity SC_UNSET = (sc_core::sc_verbosity)INT_MAX;

0 commit comments

Comments
 (0)