mirror of
https://github.com/curl/curl.git
synced 2026-07-16 01:07:17 +03:00
Allow 'curl_*printf()' to be used in C++ programs.
This commit is contained in:
parent
0af7aec211
commit
755ccbc468
1 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue