aboutsummaryrefslogtreecommitdiff
path: root/lib/sendf.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-11 16:34:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-11 16:34:24 +0000
commit710e370c34497100873dcf6252c862d77ef8c25b (patch)
tree5874179842abe7af9291ff5d638567c0ef99a5a9 /lib/sendf.h
parent7bb6d76d14b7fa5396b88bfcf8414a6514f9115e (diff)
Dan Fandrich added --disable-verbose
Diffstat (limited to 'lib/sendf.h')
-rw-r--r--lib/sendf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sendf.h b/lib/sendf.h
index 155c1193f..1d7b3522d 100644
--- a/lib/sendf.h
+++ b/lib/sendf.h
@@ -28,7 +28,17 @@ CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *,
void Curl_infof(struct SessionHandle *, const char *fmt, ...);
void Curl_failf(struct SessionHandle *, const char *fmt, ...);
+#if defined(CURL_DISABLE_VERBOSE_STRINGS)
+#if defined(__GNUC__)
+/* Variable argument macros is a C99 feature long supported by gcc */
+#define infof(...) /*ignore*/
+#else
+/* Cast the args to void to make them a noop, side effects notwithstanding */
+#define infof (void)
+#endif
+#else
#define infof Curl_infof
+#endif
#define failf Curl_failf
#define CLIENTWRITE_BODY 1