X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fftello.c;h=3a2a0f201274c8eac9898d7dc81651e1247cfc2c;hb=bbfcd2f1a92c9bdbb8d7d7d0a8a8c6665c316747;hp=fbdc44f2ea8691a00c626054a66fb3e7413544f3;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/ftello.c b/lib/ftello.c index fbdc44f2e..3a2a0f201 100644 --- a/lib/ftello.c +++ b/lib/ftello.c @@ -1,5 +1,5 @@ /* An ftello() function that works around platform bugs. - Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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. */