summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/winutil.c6
-rw-r--r--win32/winutil.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/win32/winutil.c b/win32/winutil.c
index 8c3cde86e1..ec46aa742b 100644
--- a/win32/winutil.c
+++ b/win32/winutil.c
@@ -1,12 +1,10 @@
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#include "winutil.h"
+#include <php.h>
#ifndef THREAD_SAFE
static char Win_Error_msg[256];
#endif
-char *php_win_err(void)
+PHPAPI char *php_win_err(void)
{
FormatMessage(
FORMAT_MESSAGE_FROM_SYSTEM,
diff --git a/win32/winutil.h b/win32/winutil.h
index 9e4feca8a4..b965a7fff1 100644
--- a/win32/winutil.h
+++ b/win32/winutil.h
@@ -1 +1 @@
-extern char *php_win_err(void);
+PHPAPI extern char *php_win_err(void);