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 /include | |
parent | 21f79fd580a5c70f7b7598d8ca8e87770219db94 (diff) |
Patch from Bernhard Fischer:
fix compilation if PUTC_MACRO and/or GETC_MACRO is turned off
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index 787a6aa52..fd2a73842 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -840,7 +840,14 @@ extern void funlockfile (FILE *__stream) __THROW; #define fputc_unlocked(_ch, _fp) __FPUTC_UNLOCKED(_ch, _fp) #endif +#ifndef __STDIO_GETC_MACRO +#define __stdin stdin +#endif #define getchar() __GETC(__stdin) + +#ifndef __STDIO_PUTC_MACRO +#define __stdout stdout +#endif #define putchar(_ch) __PUTC((_ch), __stdout) #if defined __USE_POSIX || defined __USE_MISC |