Mercurial > hg > octave-shane > gnulib-hg
comparison lib/stdio.in.h @ 13121:472aa3de0fbb
fseeko: Fix C++ test error on mingw.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 03 Apr 2010 14:08:25 +0200 |
parents | 4c61fd24cafa |
children | 01741ff1a40e |
comparison
equal
deleted
inserted
replaced
13120:0f4b3b66e73c | 13121:472aa3de0fbb |
---|---|
320 # if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES | 320 # if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES |
321 # define _GL_FSEEK_WARN /* Category 3, above. */ | 321 # define _GL_FSEEK_WARN /* Category 3, above. */ |
322 # undef fseek | 322 # undef fseek |
323 # endif | 323 # endif |
324 # if @REPLACE_FSEEKO@ | 324 # if @REPLACE_FSEEKO@ |
325 /* Provide fseek, fseeko functions that are aware of a preceding | 325 /* Provide an fseeko function that is aware of a preceding fflush(), and which |
326 fflush(), and which detect pipes. */ | 326 detects pipes. */ |
327 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 327 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
328 # undef fseeko | 328 # undef fseeko |
329 # define fseeko rpl_fseeko | 329 # define fseeko rpl_fseeko |
330 # endif | 330 # endif |
331 _GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence) | 331 _GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence) |
332 _GL_ARG_NONNULL ((1))); | 332 _GL_ARG_NONNULL ((1))); |
333 # if !@GNULIB_FSEEK@ | 333 _GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)); |
334 /* In order to avoid that fseek gets defined as a macro here, the | 334 # else |
335 developer can request the 'fseek' module. */ | 335 # if ! @HAVE_FSEEKO@ |
336 # undef fseek | 336 _GL_FUNCDECL_SYS (fseeko, int, (FILE *fp, off_t offset, int whence) |
337 # define fseek rpl_fseek | 337 _GL_ARG_NONNULL ((1))); |
338 # endif | |
339 _GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); | |
340 # endif | |
341 _GL_CXXALIASWARN (fseeko); | |
342 # if (@REPLACE_FSEEKO@ || !@HAVE_FSEEKO@) && !@GNULIB_FSEEK@ | |
343 /* Provide an fseek function that is consistent with fseeko. */ | |
344 /* In order to avoid that fseek gets defined as a macro here, the | |
345 developer can request the 'fseek' module. */ | |
346 # undef fseek | |
347 # define fseek rpl_fseek | |
338 static inline int _GL_ARG_NONNULL ((1)) | 348 static inline int _GL_ARG_NONNULL ((1)) |
339 rpl_fseek (FILE *fp, long offset, int whence) | 349 rpl_fseek (FILE *fp, long offset, int whence) |
340 { | 350 { |
351 # if @REPLACE_FSEEKO@ | |
352 return rpl_fseeko (fp, offset, whence); | |
353 # else | |
341 return fseeko (fp, offset, whence); | 354 return fseeko (fp, offset, whence); |
355 # endif | |
342 } | 356 } |
343 # endif | 357 # endif |
344 _GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)); | |
345 # else | |
346 _GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); | |
347 # endif | |
348 _GL_CXXALIASWARN (fseeko); | |
349 #elif defined GNULIB_POSIXCHECK | 358 #elif defined GNULIB_POSIXCHECK |
350 # define _GL_FSEEK_WARN /* Category 1, above. */ | 359 # define _GL_FSEEK_WARN /* Category 1, above. */ |
351 # undef fseek | 360 # undef fseek |
352 # undef fseeko | 361 # undef fseeko |
353 # if HAVE_RAW_DECL_FSEEKO | 362 # if HAVE_RAW_DECL_FSEEKO |