diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-01-24 13:01:12 +0000 | 
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-01-24 13:01:12 +0000 | 
| commit | d201fe46e355212750b727061e6a7ac005267852 (patch) | |
| tree | d949d903e602687ee53252807dc4281a27c4f0c4 /lib/libc/stdio/putc.c | |
| parent | e0aa5ab7184d7449e4c2e2e65107898ad23b31f7 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/putc.c')
| -rw-r--r-- | lib/libc/stdio/putc.c | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libc/stdio/putc.c b/lib/libc/stdio/putc.c index fe1591c0dec4..72d6bbff12d8 100644 --- a/lib/libc/stdio/putc.c +++ b/lib/libc/stdio/putc.c @@ -42,14 +42,19 @@ static const char rcsid[] =    "$FreeBSD$";  #endif /* LIBC_SCCS and not lint */ +#include "namespace.h"  #include <stdio.h> +#include "un-namespace.h"  #include "libc_private.h"  /* - * A subroutine version of the macro putc. + * putc has traditionally been a macro in <stdio.h>.  That is no + * longer true because POSIX requires it to be thread-safe.  POSIX + * does define putc_unlocked() which is defined as a macro and is + * probably what you want to use instead. + * + * #undef putc   */ -#undef putc -  int  putc(c, fp)  	int c;  | 
