summaryrefslogtreecommitdiff
path: root/gl/ftello.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/ftello.c')
-rw-r--r--gl/ftello.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gl/ftello.c b/gl/ftello.c
index 1beb202..1f581c5 100644
--- a/gl/ftello.c
+++ b/gl/ftello.c
@@ -31,6 +31,14 @@ ftello (FILE *fp)
# undef ftell
# define ftello ftell
#endif
+#if _GL_WINDOWS_64_BIT_OFF_T
+# undef ftello
+# if HAVE__FTELLI64 /* msvc, mingw64 */
+# define ftello _ftelli64
+# else /* mingw */
+# define ftello ftello64
+# endif
+#endif
{
#if LSEEK_PIPE_BROKEN
/* mingw gives bogus answers rather than failure on non-seekable files. */