From: Frank M. Kromann Date: Wed, 21 Nov 2001 22:47:54 +0000 (+0000) Subject: Allow php_win_err() to be called from extenstions X-Git-Tag: ChangeLog~272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e184ed1ed3c5a8e1fe2c1b856c63fe7e1bb8d041;p=php Allow php_win_err() to be called from extenstions --- 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 -#include "winutil.h" +#include #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);