1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

More Win32 build improvements

This commit is contained in:
Zeev Suraski
2003-02-17 13:27:15 +00:00
parent 566e41226f
commit fb607799cc
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -37,6 +37,9 @@
#ifdef ZTS
#ifdef TSRM_WIN32
# ifndef TSRM_INCLUDE_FULL_WINDOWS_HEADERS
# define WIN32_LEAN_AND_MEAN
# endif
# include <windows.h>
#elif defined(NETWARE)
# include <nks/thread.h>
+3
View File
@@ -24,6 +24,8 @@
#include <process.h>
#include <time.h>
#define TSRM_INCLUDE_FULL_WINDOWS_HEADERS
#include "TSRM.h"
#ifdef TSRM_WIN32
@@ -84,6 +86,7 @@ TSRM_API void tsrm_win32_shutdown(void)
TSRM_API int tsrm_win32_access(const char *pathname, int mode)
{
SHFILEINFO sfi;
if (mode == 1 /*X_OK*/) {
return access(pathname, 0) == 0 &&
SHGetFileInfo(pathname, 0, &sfi, sizeof(SHFILEINFO), SHGFI_EXETYPE) != 0 ? 0 : -1;