mirror of
https://github.com/curl/curl.git
synced 2026-04-17 17:01:43 +03:00
move DEBUGF macro definition to setup_once.h
This commit is contained in:
parent
abe90019d3
commit
ef6f24a7ce
3 changed files with 22 additions and 6 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue