[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'fflush' tweak
From: |
Bruno Haible |
Subject: |
'fflush' tweak |
Date: |
Wed, 25 Apr 2007 09:08:59 +0200 |
User-agent: |
KMail/1.5.4 |
For the later support of "gnulib-tool --posixcheck" (or similar), I'm
applying this:
2007-04-25 Bruno Haible <address@hidden>
* lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
*** lib/stdio_.h 10 Apr 2007 03:09:07 -0000 1.16
--- lib/stdio_.h 25 Apr 2007 07:04:30 -0000
***************
*** 207,217 ****
# endif
#endif
! #if @GNULIB_FFLUSH@ && @REPLACE_FFLUSH@
! # define fflush rpl_fflush
/* Flush all pending data on STREAM according to POSIX rules. Both
output and seekable input streams are supported. */
extern int fflush (FILE *gl_stream);
#endif
#ifdef __cplusplus
--- 207,226 ----
# endif
#endif
! #if @GNULIB_FFLUSH@
! # if @REPLACE_FFLUSH@
! # define fflush rpl_fflush
/* Flush all pending data on STREAM according to POSIX rules. Both
output and seekable input streams are supported. */
extern int fflush (FILE *gl_stream);
+ # endif
+ #elif defined GNULIB_POSIXCHECK
+ # undef fflush
+ # define fflush(f) \
+ (GL_LINK_WARNING ("fflush is not always POSIX compliant - " \
+ "use gnulib module fflush for portable " \
+ "POSIX compliance"), \
+ fflush (f))
#endif
#ifdef __cplusplus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 'fflush' tweak,
Bruno Haible <=