X-Git-Url: http://git.hcoop.net/bpt/guile.git/blobdiff_plain/32299e49e83b941082bee348c993630bb455a324..005de2e8273853e155c21767b1c8bdb4f3f3ca53:/lib/fstat.c diff --git a/lib/fstat.c b/lib/fstat.c index e0ed800ca..3f49e9b9b 100644 --- a/lib/fstat.c +++ b/lib/fstat.c @@ -23,6 +23,12 @@ /* Get the original definition of fstat. It might be defined as a macro. */ #include #include +#if _GL_WINDOWS_64_BIT_ST_SIZE +# undef stat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */ +# define stat _stati64 +# undef fstat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */ +# define fstat _fstati64 +#endif #undef __need_system_sys_stat_h static inline int