summaryrefslogtreecommitdiff
path: root/lib/sendf.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-03-21 13:09:39 +0000
committerYang Tse <yangsita@gmail.com>2007-03-21 13:09:39 +0000
commit90ce18019c537bac043fdbc55b91080ad759e0f0 (patch)
tree44c41ffdc52482a1bdb6204982ce2977b590e9b3 /lib/sendf.h
parentfe10cb2ef59a5989f35f97f86d3b9eaee41d474b (diff)
downloadcurl-90ce18019c537bac043fdbc55b91080ad759e0f0.tar.gz
reverted back to previous version => http://curl.haxx.se/mail/lib-2007-03/0258.html
Diffstat (limited to 'lib/sendf.h')
-rw-r--r--lib/sendf.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/sendf.h b/lib/sendf.h
index 65926192d..514cc9182 100644
--- a/lib/sendf.h
+++ b/lib/sendf.h
@@ -28,7 +28,19 @@ 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__)
+/* This style of variable argument macros is a gcc extension */
+#define infof(x...) /*ignore*/
+#else
+/* C99 compilers could use this if we could detect them */
+/*#define infof(...) */
+/* 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