mhd_assert: use "DEBUG" macro defined by some toolchains

This commit is contained in:
Evgeny Grin (Karlson2k)
2022-10-13 09:07:02 +03:00
parent 094e2bbedd
commit ce538bc102
+4
View File
@@ -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