aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-06 13:57:26 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-06 13:57:26 +0000
commit2ddb9d57aab0c46e8e33b4954b5be881a9e41c6b (patch)
tree079a5fc7726d5387029103d6e3f0928f6ad427d7
parent4f012ad703f6ed8704365a7a12cf9d50bb0b085c (diff)
Undefine symbols before redefining them.
-rw-r--r--lib/curlx.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/curlx.h b/lib/curlx.h
index 0dd9a0948..ffc860fc9 100644
--- a/lib/curlx.h
+++ b/lib/curlx.h
@@ -79,7 +79,19 @@
#ifdef ENABLE_CURLX_PRINTF
/* If this define is set, we define all "standard" printf() functions to use
the curlx_* version instead. It makes the source code transparant and
- easier to understand/patch. */
+ easier to understand/patch. Undefine them first in case _MPRINTF_REPLACE
+ is set. */
+# undef printf
+# undef fprintf
+# undef sprintf
+# undef snprintf
+# undef vprintf
+# undef vfprintf
+# undef vsprintf
+# undef vsnprintf
+# undef aprintf
+# undef vaprintf
+
# define printf curlx_mprintf
# define fprintf curlx_mfprintf
# define sprintf curlx_msprintf