Skip to content

Commit

Permalink
Allow php_win_err() to be called from extenstions
Browse files Browse the repository at this point in the history
  • Loading branch information
fmk committed Nov 21, 2001
1 parent 2ea46ef commit e184ed1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions win32/winutil.c
Original file line number Original file line Diff line number Diff line change
@@ -1,12 +1,10 @@
#define WIN32_LEAN_AND_MEAN #include <php.h>
#include <windows.h>
#include "winutil.h"


#ifndef THREAD_SAFE #ifndef THREAD_SAFE
static char Win_Error_msg[256]; static char Win_Error_msg[256];
#endif #endif


char *php_win_err(void) PHPAPI char *php_win_err(void)
{ {
FormatMessage( FormatMessage(
FORMAT_MESSAGE_FROM_SYSTEM, FORMAT_MESSAGE_FROM_SYSTEM,
Expand Down
2 changes: 1 addition & 1 deletion win32/winutil.h
Original file line number Original file line Diff line number Diff line change
@@ -1 +1 @@
extern char *php_win_err(void); PHPAPI extern char *php_win_err(void);

0 comments on commit e184ed1

Please sign in to comment.