summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-03-03 12:36:18 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-03-03 12:36:18 +0100
commitdf5578a7a304a23f9aa3670daff8573ec3ef416f (patch)
tree5a860c60fe1401cc4e577de1537f7a3c08e3bd0e /include
parentf2108ec34cefff432c234e167bafa4f19eae8b47 (diff)
downloadcurl-df5578a7a304a23f9aa3670daff8573ec3ef416f.tar.gz
mprintf.h: remove #ifdef CURLDEBUG
... and as a consequence, introduce curl_printf.h with that re-define magic instead and make all libcurl code use that instead.
Diffstat (limited to 'include')
-rw-r--r--include/curl/mprintf.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/curl/mprintf.h b/include/curl/mprintf.h
index cc9e7f5d1..c6b0d7679 100644
--- a/include/curl/mprintf.h
+++ b/include/curl/mprintf.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -57,15 +57,8 @@ CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
# undef vaprintf
# define printf curl_mprintf
# define fprintf curl_mfprintf
-#ifdef CURLDEBUG
-/* When built with CURLDEBUG we define away the sprintf functions since we
- don't want internal code to be using them */
-# define sprintf sprintf_was_used
-# define vsprintf vsprintf_was_used
-#else
# define sprintf curl_msprintf
# define vsprintf curl_mvsprintf
-#endif
# define snprintf curl_msnprintf
# define vprintf curl_mvprintf
# define vfprintf curl_mvfprintf