cvs: php-src /main snprintf.h
| From: | Jani Taskinen | Date: | Thu, 31 Mar 2005 07:37:39 +0000 |
| Subject: | cvs: php-src /main snprintf.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31164@lists.php.net to get a copy of this message | ||
sniper Thu Mar 31 02:37:39 2005 EDT
Modified files:
/php-src/main snprintf.h
Log:
C++ fix
http://cvs.php.net/diff.php/php-src/main/snprintf.h?r1=1.29&r2=1.30&ty=u
Index: php-src/main/snprintf.h
diff -u php-src/main/snprintf.h:1.29 php-src/main/snprintf.h:1.30
--- php-src/main/snprintf.h:1.29 Mon Nov 15 16:04:09 2004
+++ php-src/main/snprintf.h Thu Mar 31 02:37:39 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: snprintf.h,v 1.29 2004/11/15 21:04:09 fmk Exp $ */
+/* $Id: snprintf.h,v 1.30 2005/03/31 07:37:39 sniper Exp $ */
/*
@@ -64,19 +64,22 @@
#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