From e184ed1ed3c5a8e1fe2c1b856c63fe7e1bb8d041 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Wed, 21 Nov 2001 22:47:54 +0000 Subject: [PATCH] Allow php_win_err() to be called from extenstions --- win32/winutil.c | 6 ++---- win32/winutil.h | 2 +- 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 -#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); -- 2.40.0