From: Kalle Sommer Nielsen Date: Sun, 20 Jul 2008 20:17:48 +0000 (+0000) Subject: Fix macro redef X-Git-Tag: php-5.3.0alpha1~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04be84748ff262433356c5fd06a5cd5d4702b900;p=php Fix macro redef --- diff --git a/win32/wfile.c b/win32/wfile.c index 1407d6a32b..3a5118e037 100644 --- a/win32/wfile.c +++ b/win32/wfile.c @@ -6,7 +6,7 @@ int readlink(char *file_Name, char *buf_Mem, int buf_Size) { /* See if the file exists */ - if (access(file_Name, X_OK) == -1) { + if (access(file_Name, WFILE_EXISTS) == -1) { errno = ENOENT; } else { errno = EINVAL; diff --git a/win32/wfile.h b/win32/wfile.h index 2e79406478..0105e76eed 100644 --- a/win32/wfile.h +++ b/win32/wfile.h @@ -4,7 +4,7 @@ #include #define access _access -#define X_OK 0 +#define WFILE_EXISTS 0 #ifndef ENOENT #define ENOENT 136 #endif