move DEBUGF macro definition to setup_once.h
authorYang Tse <yangsita@gmail.com>
Fri, 2 Feb 2007 15:31:32 +0000 (15:31 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 2 Feb 2007 15:31:32 +0000 (15:31 +0000)
ares/setup_once.h
lib/setup.h
lib/setup_once.h

index 09f0865..0ff1d65 100644 (file)
@@ -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 */
 
index 84acfca..813ef07 100644 (file)
@@ -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")
index ee68641..3d3235e 100644 (file)
@@ -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 */