summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-11-21 22:47:54 +0000
committerFrank M. Kromann <fmk@php.net>2001-11-21 22:47:54 +0000
commite184ed1ed3c5a8e1fe2c1b856c63fe7e1bb8d041 (patch)
tree196d47ed732fa6b2c1ee8a3726c28b52d7be27ba /win32
parent2ea46ef6cce631d11657dc07e5b7635868a5b65c (diff)
downloadphp-git-e184ed1ed3c5a8e1fe2c1b856c63fe7e1bb8d041.tar.gz
Allow php_win_err() to be called from extenstions
Diffstat (limited to 'win32')
-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);