From 04be84748ff262433356c5fd06a5cd5d4702b900 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Sun, 20 Jul 2008 20:17:48 +0000 Subject: [PATCH] Fix macro redef --- win32/wfile.c | 2 +- win32/wfile.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.1