diff options
Diffstat (limited to 'src/microhttpd/mhd_assert.h')
-rw-r--r-- | src/microhttpd/mhd_assert.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_assert.h b/src/microhttpd/mhd_assert.h index 9513f12e..b24ce93d 100644 --- a/src/microhttpd/mhd_assert.h +++ b/src/microhttpd/mhd_assert.h | |||
@@ -32,7 +32,11 @@ | |||
32 | #include "mhd_options.h" | 32 | #include "mhd_options.h" |
33 | 33 | ||
34 | #if ! defined(_DEBUG) && ! defined(NDEBUG) | 34 | #if ! defined(_DEBUG) && ! defined(NDEBUG) |
35 | #ifndef DEBUG /* Used by some toolchains */ | ||
35 | #define NDEBUG 1 /* Use NDEBUG by default */ | 36 | #define NDEBUG 1 /* Use NDEBUG by default */ |
37 | #else /* DEBUG */ | ||
38 | #define _DEBUG 1 | ||
39 | #endif /* DEBUG */ | ||
36 | #endif /* !_DEBUG && !NDEBUG */ | 40 | #endif /* !_DEBUG && !NDEBUG */ |
37 | #if defined(_DEBUG) && defined(NDEBUG) | 41 | #if defined(_DEBUG) && defined(NDEBUG) |
38 | #error Both _DEBUG and NDEBUG are defined | 42 | #error Both _DEBUG and NDEBUG are defined |