summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-10 02:49:42 (GMT)
committerYang Tse <yangsita@gmail.com>2009-06-10 02:49:42 (GMT)
commit1bbfcc09cade5737f47df9c1df04c29945f72503 (patch)
treeee92b5d0d4510484693ff3f9b7164c40199c1c0b /setup_once.h
parent7fcd022b2adf3ab7157ee818e6180eadd627d214 (diff)
downloadc-ares-1bbfcc09cade5737f47df9c1df04c29945f72503.zip
c-ares-1bbfcc09cade5737f47df9c1df04c29945f72503.tar.gz
c-ares-1bbfcc09cade5737f47df9c1df04c29945f72503.tar.bz2
Adjusted to take in account that...
With the curl memory tracking feature decoupled from the debug build feature, CURLDEBUG and DEBUGBUILD preprocessor symbol definitions are used as follows: CURLDEBUG used for curl debug memory tracking specific code (--enable-curldebug) DEBUGBUILD used for debug enabled specific code (--enable-debug)
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_once.h b/setup_once.h
index 99367aa..de6c632 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -297,7 +297,7 @@ typedef int sig_atomic_t;
* Macro used to include code only in debug builds.
*/
-#ifdef CURLDEBUG
+#ifdef DEBUGBUILD
#define DEBUGF(x) x
#else
#define DEBUGF(x) do { } while (0)
@@ -308,7 +308,7 @@ typedef int sig_atomic_t;
* Macro used to include assertion code only in debug builds.
*/
-#if defined(CURLDEBUG) && defined(HAVE_ASSERT_H)
+#if defined(DEBUGBUILD) && defined(HAVE_ASSERT_H)
#define DEBUGASSERT(x) assert(x)
#else
#define DEBUGASSERT(x) do { } while (0)