gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 35/156: mhd_assert: use "DEBUG" macro defined by some to


From: gnunet
Subject: [libmicrohttpd] 35/156: mhd_assert: use "DEBUG" macro defined by some toolchains
Date: Sun, 28 May 2023 17:51:28 +0200

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

karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.

commit d05e6b9e1a7777002d326e4c222a61bfa823528e
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]