]> granicus.if.org Git - php/commitdiff
Export spprintf() so that extension can link properly on win32.
authorEdin Kadribasic <edink@php.net>
Mon, 12 Aug 2002 09:07:26 +0000 (09:07 +0000)
committerEdin Kadribasic <edink@php.net>
Mon, 12 Aug 2002 09:07:26 +0000 (09:07 +0000)
main/spprintf.c
main/spprintf.h

index fe34b120023fea107dc643affe4845503504ad01..e3090741a38542ef39f8cf57fb1ffb1e10d01a46 100644 (file)
@@ -633,7 +633,7 @@ PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap
 }
 
 
-int spprintf(char **pbuf, size_t max_len, const char *format, ...)
+PHPAPI int spprintf(char **pbuf, size_t max_len, const char *format, ...)
 {
        int cc;
        va_list ap;
index 64ce28300dd10090d9b1e2bae9e5317c254f376c..c249fe5ecccd27392a8c5aca764322780b1909a6 100644 (file)
@@ -35,7 +35,7 @@ There is also snprintf: See difference explained in snprintf.h
 #include "snprintf.h"
 
 BEGIN_EXTERN_C()
-extern int spprintf( char **pbuf, size_t max_len, const char *format, ...);
+PHPAPI extern int spprintf( char **pbuf, size_t max_len, const char *format, ...);
 
 PHPAPI extern int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap);
 END_EXTERN_C()