From 3a947f256a4b11a659db1abe090c2e560dedf391 Mon Sep 17 00:00:00 2001 From: foobar Date: Thu, 31 Mar 2005 07:37:39 +0000 Subject: C++ fix --- main/snprintf.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main/snprintf.h') diff --git a/main/snprintf.h b/main/snprintf.h index 2eb284a288..f921ad14cd 100644 --- a/main/snprintf.h +++ b/main/snprintf.h @@ -64,19 +64,22 @@ Example: #ifndef SNPRINTF_H #define SNPRINTF_H +BEGIN_EXTERN_C() PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4); +PHPAPI int ap_php_vsnprintf(char *, size_t, const char *, va_list ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0); +PHPAPI int php_sprintf (char* s, const char* format, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3); +END_EXTERN_C() + #ifdef snprintf #undef snprintf #endif #define snprintf ap_php_snprintf -PHPAPI int ap_php_vsnprintf(char *, size_t, const char *, va_list ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0); #ifdef vsnprintf #undef vsnprintf #endif #define vsnprintf ap_php_vsnprintf -PHPAPI int php_sprintf (char* s, const char* format, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3); #ifdef sprintf #undef sprintf #endif -- cgit v1.2.1