mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
mhd_assert: use "DEBUG" macro defined by some toolchains
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user