summaryrefslogtreecommitdiff
path: root/main/snprintf.h
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-03-31 07:37:39 +0000
committerfoobar <sniper@php.net>2005-03-31 07:37:39 +0000
commit3a947f256a4b11a659db1abe090c2e560dedf391 (patch)
treeac05a2346ac48e7ffd0a0318cb654d7e76b7c7c6 /main/snprintf.h
parentd5b2c5e28617fac614b04f178581ca250f390dba (diff)
downloadphp-git-3a947f256a4b11a659db1abe090c2e560dedf391.tar.gz
C++ fix
Diffstat (limited to 'main/snprintf.h')
-rw-r--r--main/snprintf.h7
1 files changed, 5 insertions, 2 deletions
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