diff options
author | Zeev Suraski <zeev@php.net> | 1999-04-23 20:06:01 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-04-23 20:06:01 +0000 |
commit | 6f7c0edee361e15295b85ad6e03f3d109e446f22 (patch) | |
tree | 550ea80544fd08641b418a1f783f62aa6c5745b8 /win32/winutil.c | |
parent | f53afa6eddaf46646f49e2579efbdf3dfb0d167e (diff) | |
download | php-git-6f7c0edee361e15295b85ad6e03f3d109e446f22.tar.gz |
Remove tls.[ch]
Diffstat (limited to 'win32/winutil.c')
-rw-r--r-- | win32/winutil.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/win32/winutil.c b/win32/winutil.c index 0ac7e54703..d22aa308dc 100644 --- a/win32/winutil.c +++ b/win32/winutil.c @@ -1,9 +1,3 @@ -#ifdef THREAD_SAFE -#include "tls.h" -#else -#define TLS_VARS -#define GLOBAL(a) a -#endif #define WIN32_LEAN_AND_MEAN #include <windows.h> #include "winutil.h" @@ -14,16 +8,14 @@ static char Win_Error_msg[256]; char *php3_win_err(void) { - TLS_VARS; - FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language - (LPTSTR) GLOBAL(Win_Error_msg), + (LPTSTR) Win_Error_msg, 256, NULL); - return GLOBAL(Win_Error_msg); + return Win_Error_msg; } |