From: Yang Tse Date: Fri, 2 Feb 2007 15:31:32 +0000 (+0000) Subject: move DEBUGF macro definition to setup_once.h X-Git-Tag: curl-7_16_2~378 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef6f24a7ce99674262ee51e6cba2fcf798dd19f2;p=thirdparty%2Fcurl.git move DEBUGF macro definition to setup_once.h --- diff --git a/ares/setup_once.h b/ares/setup_once.h index 09f0865881..0ff1d65a17 100644 --- a/ares/setup_once.h +++ b/ares/setup_once.h @@ -142,5 +142,16 @@ typedef int sig_atomic_t; #endif +/* + * Macro used to include code only in debug builds. + */ + +#ifdef CURLDEBUG +#define DEBUGF(X) X +#else +#define DEBUGF(X) do { } while (0) +#endif + + #endif /* __SETUP_ONCE_H */ diff --git a/lib/setup.h b/lib/setup.h index 84acfcafdd..813ef07bfa 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -358,12 +358,6 @@ int fileno( FILE *stream); #endif #endif -#ifdef CURLDEBUG -#define DEBUGF(x) x -#else -#define DEBUGF(x) -#endif - /* non-configure builds may define CURL_WANTS_CA_BUNDLE_ENV */ #if defined(CURL_WANTS_CA_BUNDLE_ENV) && !defined(CURL_CA_BUNDLE) #define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE") diff --git a/lib/setup_once.h b/lib/setup_once.h index ee68641589..3d3235edee 100644 --- a/lib/setup_once.h +++ b/lib/setup_once.h @@ -149,5 +149,16 @@ typedef int sig_atomic_t; #endif +/* + * Macro used to include code only in debug builds. + */ + +#ifdef CURLDEBUG +#define DEBUGF(X) X +#else +#define DEBUGF(X) do { } while (0) +#endif + + #endif /* __SETUP_ONCE_H */