mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Make sure the DEBUG flag is defined when building in debug mode
MSVC uses _DEBUG, unlike all of the other compilers, so we aren't properly enabling/disabling varying bits of code that are dependent on DEBUG being defined.
This commit is contained in:
parent
4cb77c1743
commit
1f0860b5e2
2 changed files with 4 additions and 1 deletions
|
@ -41,6 +41,9 @@
|
|||
|
||||
#include <cassert>
|
||||
|
||||
#ifdef ASSERT
|
||||
#undef ASSERT
|
||||
#endif
|
||||
#define ASSERT(x) assert(x)
|
||||
#define DEBUG_MSG(...) fprintf(stderr, __VA_ARGS__)
|
||||
#define DEBUG_fputs fputs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue