X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstat.c;h=1fc633eeef035cf6af3c4e0994a1e5f9dc01ed6e;hb=3f3d9b41ce3bcc3f4664512c3756621126a5eab2;hp=29acd9a76e584a473935b9fc4f15083e8a49a130;hpb=f15a17dc1f5d2b1fc8a423795c54b211552c0483;p=gnulib.git diff --git a/lib/stat.c b/lib/stat.c index 29acd9a76..1fc633eee 100644 --- a/lib/stat.c +++ b/lib/stat.c @@ -27,13 +27,18 @@ #include #undef __need_system_sys_stat_h -#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \ - && REPLACE_FUNC_STAT_FILE +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# if _GL_WINDOWS_64_BIT_ST_SIZE +# define stat _stati64 +# define REPLACE_FUNC_STAT_DIR 1 +# undef REPLACE_FUNC_STAT_FILE +# elif REPLACE_FUNC_STAT_FILE /* mingw64 has a broken stat() function, based on _stat(), in libmingwex.a. Bypass it. */ -# define stat _stat -# define REPLACE_FUNC_STAT_DIR 1 -# undef REPLACE_FUNC_STAT_FILE +# define stat _stat +# define REPLACE_FUNC_STAT_DIR 1 +# undef REPLACE_FUNC_STAT_FILE +# endif #endif static inline int