From 755ccbc468a8ebe99ac108d32e3dfb7fa8e0fad7 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 30 Oct 2006 16:26:24 +0000 Subject: [PATCH] Allow 'curl_*printf()' to be used in C++ programs. --- include/curl/mprintf.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/curl/mprintf.h b/include/curl/mprintf.h index 6ba9ea8bf..b087d9a80 100644 --- a/include/curl/mprintf.h +++ b/include/curl/mprintf.h @@ -28,6 +28,10 @@ #include "curl.h" +#ifdef __cplusplus +extern "C" { +#endif + CURL_EXTERN int curl_mprintf(const char *format, ...); CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...); CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...); @@ -59,4 +63,8 @@ CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args); # define vaprintf curl_mvaprintf #endif +#ifdef __cplusplus +} +#endif + #endif /* __CURL_MPRINTF_H */