From 553b7d27bf8cfb26981769f4dfa9cf574f94892f Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Mon, 12 Aug 2002 09:07:26 +0000 Subject: [PATCH] Export spprintf() so that extension can link properly on win32. --- main/spprintf.c | 2 +- main/spprintf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/spprintf.c b/main/spprintf.c index fe34b12002..e3090741a3 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -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; diff --git a/main/spprintf.h b/main/spprintf.h index 64ce28300d..c249fe5ecc 100644 --- a/main/spprintf.h +++ b/main/spprintf.h @@ -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() -- 2.40.0