From: Bruno Haible Date: Wed, 23 May 2007 22:00:35 +0000 (+0000) Subject: Provide a link warning only if GNULIB_POSIXCHECK is defined. X-Git-Tag: cvs-readonly~352 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=25a403fc2286eec2666b551055186c5043cce029;p=gnulib.git Provide a link warning only if GNULIB_POSIXCHECK is defined. --- diff --git a/ChangeLog b/ChangeLog index ef36f7454..8d8868cd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-23 Bruno Haible + + * lib/stdio_.h (fseeko, ftello): Provide a link warning only if + GNULIB_POSIXCHECK is defined. + 2007-05-21 Bruno Haible * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE): diff --git a/lib/stdio_.h b/lib/stdio_.h index 787c5d1ad..93ef31a54 100644 --- a/lib/stdio_.h +++ b/lib/stdio_.h @@ -227,7 +227,7 @@ extern int fseeko (FILE *fp, off_t offset, int whence); typedef int verify_fseeko_types[2 * (sizeof (off_t) == sizeof (long)) - 1]; # define fseeko fseek # endif -#else +#elif defined GNULIB_POSIXCHECK # undef fseeko # define fseeko(f,o,w) \ (GL_LINK_WARNING ("fseeko is unportable - " \ @@ -251,7 +251,7 @@ typedef int verify_fseeko_types[2 * (sizeof (off_t) == sizeof (long)) - 1]; typedef int verify_ftello_types[2 * (sizeof (off_t) == sizeof (long)) - 1]; # define ftello ftell # endif -#else +#elif defined GNULIB_POSIXCHECK # undef ftello # define ftello(f) \ (GL_LINK_WARNING ("ftello is unportable - " \