projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a86df4
)
fflush & GNULIB_POSIXCHECK.
author
Bruno Haible
<bruno@clisp.org>
Wed, 25 Apr 2007 07:09:29 +0000
(07:09 +0000)
committer
Bruno Haible
<bruno@clisp.org>
Wed, 25 Apr 2007 07:09:29 +0000
(07:09 +0000)
ChangeLog
patch
|
blob
|
history
lib/stdio_.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 33c7d57fd651c48beb7a29ec0b885fe8a14399e2..bf3901e4edd89ef0081d5ac45bfe931133624788 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,7
@@
+2007-04-25 Bruno Haible <bruno@clisp.org>
+
+ * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
+
2007-04-25 Bruno Haible <bruno@clisp.org>
* lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
2007-04-25 Bruno Haible <bruno@clisp.org>
* lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
diff --git
a/lib/stdio_.h
b/lib/stdio_.h
index a87bf8da7b5d63276654f5df60931ad0b5bf6704..2a5a253c66482da66519fd5f241ad2c08c0236e0 100644
(file)
--- a/
lib/stdio_.h
+++ b/
lib/stdio_.h
@@
-207,11
+207,20
@@
extern int vsprintf (char *str, const char *format, va_list args)
# endif
#endif
# endif
#endif
-#if @GNULIB_FFLUSH@ && @REPLACE_FFLUSH@
-# define fflush rpl_fflush
+#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);
/* 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
#endif
#ifdef __cplusplus