comparison lib/stdio.in.h @ 13122:01741ff1a40e

ftello: Fix C++ test error on mingw.
author Bruno Haible <bruno@clisp.org>
date Sat, 03 Apr 2010 14:25:24 +0200
parents 472aa3de0fbb
children f42a08f19992
comparison
equal deleted inserted replaced
13121:472aa3de0fbb 13122:01741ff1a40e
404 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 404 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
405 # undef ftello 405 # undef ftello
406 # define ftello rpl_ftello 406 # define ftello rpl_ftello
407 # endif 407 # endif
408 _GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); 408 _GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1)));
409 # if !@GNULIB_FTELL@ 409 _GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp));
410 /* In order to avoid that ftell gets defined as a macro here, the 410 # else
411 developer can request the 'ftell' module. */ 411 # if ! @HAVE_FTELLO@
412 # undef ftell 412 _GL_FUNCDECL_SYS (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1)));
413 # define ftell rpl_ftell 413 # endif
414 _GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp));
415 # endif
416 _GL_CXXALIASWARN (ftello);
417 # if (@REPLACE_FTELLO@ || !@HAVE_FTELLO@) && !@GNULIB_FTELL@
418 /* Provide an ftell function that is consistent with ftello. */
419 /* In order to avoid that ftell gets defined as a macro here, the
420 developer can request the 'ftell' module. */
421 # undef ftell
422 # define ftell rpl_ftell
414 static inline long _GL_ARG_NONNULL ((1)) 423 static inline long _GL_ARG_NONNULL ((1))
415 rpl_ftell (FILE *f) 424 rpl_ftell (FILE *f)
416 { 425 {
426 # if @REPLACE_FTELLO@
427 return rpl_ftello (f);
428 # else
417 return ftello (f); 429 return ftello (f);
430 # endif
418 } 431 }
419 # endif 432 # endif
420 _GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp));
421 # else
422 _GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp));
423 # endif
424 _GL_CXXALIASWARN (ftello);
425 #elif defined GNULIB_POSIXCHECK 433 #elif defined GNULIB_POSIXCHECK
426 # define _GL_FTELL_WARN /* Category 1, above. */ 434 # define _GL_FTELL_WARN /* Category 1, above. */
427 # undef ftell 435 # undef ftell
428 # undef ftello 436 # undef ftello
429 # if HAVE_RAW_DECL_FTELLO 437 # if HAVE_RAW_DECL_FTELLO