diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-11 08:36:35 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-13 09:07:02 +0300 |
commit | ce538bc10254dbe52ea8ae66aeb0bc77605d1547 (patch) | |
tree | f46ac6473d60413b69b0780f43827436d07a2b01 | |
parent | 094e2bbedd64cad4f112a780d3775ed352498b24 (diff) | |
download | libmicrohttpd-ce538bc10254dbe52ea8ae66aeb0bc77605d1547.tar.gz libmicrohttpd-ce538bc10254dbe52ea8ae66aeb0bc77605d1547.zip |
mhd_assert: use "DEBUG" macro defined by some toolchains
-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 |