diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-12-15 00:12:23 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-12-15 00:12:23 +0000 |
commit | 868274823302c293bdf3d31a3415f19d4030864e (patch) | |
tree | 9a3398f6c12b8d063beab408381112a8a3c6b20c /libc/stdio/getchar.c | |
parent | 21f79fd580a5c70f7b7598d8ca8e87770219db94 (diff) |
Patch from Bernhard Fischer:
fix compilation if PUTC_MACRO and/or GETC_MACRO is turned off
Diffstat (limited to 'libc/stdio/getchar.c')
-rw-r--r-- | libc/stdio/getchar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdio/getchar.c b/libc/stdio/getchar.c index 6da8307b6..a8c39f8db 100644 --- a/libc/stdio/getchar.c +++ b/libc/stdio/getchar.c @@ -12,7 +12,9 @@ libc_hidden_proto(__fgetc_unlocked) #undef getchar #ifdef __DO_UNLOCKED +/* the only use of the hidden getchar_unlocked is in gets.c */ #undef getchar_unlocked +libc_hidden_proto(getchar_unlocked) int getchar_unlocked(void) { register FILE *stream = stdin; |