changeset 8866:54716ad6bb86

Provide a link warning only if GNULIB_POSIXCHECK is defined.
author Bruno Haible <bruno@clisp.org>
date Wed, 23 May 2007 22:00:35 +0000
parents 9e203d8ade65
children 453d0d81ea05
files ChangeLog lib/stdio_.h
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-23  Bruno Haible  <bruno@clisp.org>
+
+	* lib/stdio_.h (fseeko, ftello): Provide a link warning only if
+	GNULIB_POSIXCHECK is defined.
+
 2007-05-21  Bruno Haible  <bruno@clisp.org>
 
 	* m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
--- a/lib/stdio_.h
+++ b/lib/stdio_.h
@@ -227,7 +227,7 @@
 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_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 - " \