summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/SAPI.h4
-rw-r--r--main/php_open_temporary_file.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index 1983eda47d..86eb356104 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -210,8 +210,8 @@ struct _sapi_post_entry {
#define SAPI_DEFAULT_CHARSET ""
#define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION
-#define SAPI_POST_READER_FUNC(post_reader) void post_reader(SLS_D)
-#define SAPI_POST_HANDLER_FUNC(post_handler) void post_handler(char *content_type_dup, void *arg SLS_DC)
+#define SAPI_POST_READER_FUNC(post_reader) SAPI_API void post_reader(SLS_D)
+#define SAPI_POST_HANDLER_FUNC(post_handler) SAPI_API void post_handler(char *content_type_dup, void *arg SLS_DC)
SAPI_POST_READER_FUNC(sapi_read_standard_form_data);
SAPI_POST_READER_FUNC(php_default_post_reader);
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c
index 68d4edcde2..64f9cd8c9b 100644
--- a/main/php_open_temporary_file.c
+++ b/main/php_open_temporary_file.c
@@ -139,7 +139,7 @@ static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **open
* This function should do its best to return a file pointer to a newly created
* unique file, on every platform.
*/
-FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p)
+PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p)
{
static char path_tmp[] = "/tmp";
FILE *fp;