X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstdio.in.h;h=d0ffa59863492649cb12d6000845a4d3cfcb411f;hb=9faf3d43bdbdab2aa0df10f3470208f260d51dcd;hp=7a0bc12d39321780d4223093678d9207400b12b8;hpb=98e6017bf555489ddc02f15cc5db9da04f08b2d7;p=gnulib.git diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 7a0bc12d3..d0ffa5986 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -227,7 +227,14 @@ extern int rpl_fseek (FILE *fp, long offset, int whence); fflush(), and which detect pipes. */ # define fseeko rpl_fseeko extern int fseeko (FILE *fp, off_t offset, int whence); -# define fseek(fp, offset, whence) fseeko (fp, (off_t)(offset), whence) +# if !@GNULIB_FSEEK@ +# undef fseek +# define fseek(f,o,w) \ + (GL_LINK_WARNING ("fseek cannot handle files larger than 4 GB " \ + "on 32-bit platforms - " \ + "use fseeko function for handling of large files"), \ + fseeko (f, o, w)) +# endif # endif #elif defined GNULIB_POSIXCHECK # undef fseeko @@ -263,7 +270,14 @@ extern long rpl_ftell (FILE *fp); # if @REPLACE_FTELLO@ # define ftello rpl_ftello extern off_t ftello (FILE *fp); -# define ftell(fp) ftello (fp) +# if !@GNULIB_FTELL@ +# undef ftell +# define ftell(f) \ + (GL_LINK_WARNING ("ftell cannot handle files larger than 4 GB " \ + "on 32-bit platforms - " \ + "use ftello function for handling of large files"), \ + ftello (f)) +# endif # endif #elif defined GNULIB_POSIXCHECK # undef ftello