aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-11 08:36:35 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-13 09:07:02 +0300
commitce538bc10254dbe52ea8ae66aeb0bc77605d1547 (patch)
treef46ac6473d60413b69b0780f43827436d07a2b01 /src
parent094e2bbedd64cad4f112a780d3775ed352498b24 (diff)
downloadlibmicrohttpd-ce538bc10254dbe52ea8ae66aeb0bc77605d1547.tar.gz
libmicrohttpd-ce538bc10254dbe52ea8ae66aeb0bc77605d1547.zip
mhd_assert: use "DEBUG" macro defined by some toolchains
Diffstat (limited to 'src')
-rw-r--r--src/microhttpd/mhd_assert.h4
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