Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow php_win_err() to be called from extenstions

  • Loading branch information...
commit e184ed1ed3c5a8e1fe2c1b856c63fe7e1bb8d041 1 parent 2ea46ef
@fmk fmk authored
Showing with 3 additions and 5 deletions.
  1. +2 −4 win32/winutil.c
  2. +1 −1  win32/winutil.h
View
6 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,
View
2  win32/winutil.h
@@ -1 +1 @@
-extern char *php_win_err(void);
+PHPAPI extern char *php_win_err(void);
Please sign in to comment.
Something went wrong with that request. Please try again.