gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 03/10: mhd_assert: use "DEBUG" macro defined by some too


From: gnunet
Subject: [libmicrohttpd] 03/10: mhd_assert: use "DEBUG" macro defined by some toolchains
Date: Thu, 13 Oct 2022 08:40:43 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit ce538bc10254dbe52ea8ae66aeb0bc77605d1547
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Oct 11 08:36:35 2022 +0300

    mhd_assert: use "DEBUG" macro defined by some toolchains
---
 src/microhttpd/mhd_assert.h | 4 ++++
 1 file changed, 4 insertions(+)

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 @@
 #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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]