diff options
Diffstat (limited to 'gl/fseeko.c')
-rw-r--r-- | gl/fseeko.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gl/fseeko.c b/gl/fseeko.c index 64c0640810..c372a5c142 100644 --- a/gl/fseeko.c +++ b/gl/fseeko.c @@ -31,6 +31,14 @@ fseeko (FILE *fp, off_t offset, int whence) # undef fseek # define fseeko fseek #endif +#if _GL_WINDOWS_64_BIT_OFF_T +# undef fseeko +# if HAVE__FSEEKI64 /* msvc, mingw64 */ +# define fseeko _fseeki64 +# else /* mingw */ +# define fseeko fseeko64 +# endif +#endif { #if LSEEK_PIPE_BROKEN /* mingw gives bogus answers rather than failure on non-seekable files. */ |