commit ce538bc10254dbe52ea8ae66aeb0bc77605d1547
parent 094e2bbedd64cad4f112a780d3775ed352498b24
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 11 Oct 2022 08:36:35 +0300
mhd_assert: use "DEBUG" macro defined by some toolchains
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/mhd_assert.h b/src/microhttpd/mhd_assert.h
@@ -32,7 +32,11 @@
#include "mhd_options.h"
#if ! defined(_DEBUG) && ! defined(NDEBUG)
+#ifndef DEBUG /* Used by some toolchains */
#define NDEBUG 1 /* Use NDEBUG by default */
+#else /* DEBUG */
+#define _DEBUG 1
+#endif /* DEBUG */
#endif /* !_DEBUG && !NDEBUG */
#if defined(_DEBUG) && defined(NDEBUG)
#error Both _DEBUG and NDEBUG are defined