From: Simon Josefsson Date: Mon, 1 Nov 2004 21:45:37 +0000 (+0000) Subject: (fflush_unlocked, flockfile, funlockfile) X-Git-Tag: cvs-readonly~3807 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=a7d9685ea70e33dfe2e475040b5dd9a3145291bf;p=gnulib.git (fflush_unlocked, flockfile, funlockfile) (funlockfile, fputs_unlocked, putc_unlocked): Don't define if already declared. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 32a470b25..c73c45602 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2004-11-01 Paul Eggert + + * lib/getpass.c (fflush_unlocked, flockfile, funlockfile) + (funlockfile, fputs_unlocked, putc_unlocked): Don't define if + already declared. + 2004-10-29 Paul Eggert * getdate.y: Add support for TZ="foo" within a date string. diff --git a/lib/getpass.c b/lib/getpass.c index 78f21e019..4f520aef3 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -58,16 +58,26 @@ #elif USE_UNLOCKED_IO # include "unlocked-io.h" #else -# undef fflush_unlocked -# define fflush_unlocked(x) fflush (x) -# undef flockfile -# define flockfile(x) ((void) 0) -# undef funlockfile -# define funlockfile(x) ((void) 0) -# undef fputs_unlocked -# define fputs_unlocked(str,stream) fputs (str, stream) -# undef putc_unlocked -# define putc_unlocked(c,stream) putc (c, stream) +# if !HAVE_DECL_FFLUSH_UNLOCKED +# undef fflush_unlocked +# define fflush_unlocked(x) fflush (x) +# endif +# if !HAVE_DECL_FLOCKFILE +# undef flockfile +# define flockfile(x) ((void) 0) +# endif +# if !HAVE_DECL_FUNLOCKFILE +# undef funlockfile +# define funlockfile(x) ((void) 0) +# endif +# if !HAVE_DECL_FPUTS_UNLOCKED +# undef fputs_unlocked +# define fputs_unlocked(str,stream) fputs (str, stream) +# endif +# if !HAVE_DECL_PUTC_UNLOCKED +# undef putc_unlocked +# define putc_unlocked(c,stream) putc (c, stream) +# endif #endif #if _LIBC