summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-17 16:02:02 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-17 16:02:02 +0000
commit3893e7e397b3932a3e6e604d2e7a82b260a1133e (patch)
tree77fb160e681ce491cee7b59b8b72f83b94856a27 /libc
parentd45ac37b85ba043110f9ce88c7f56dab40610b2b (diff)
Build if GETC_MACRO use is disabled
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/gets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/gets.c b/libc/stdio/gets.c
index fd084c90c..5ff7869dc 100644
--- a/libc/stdio/gets.c
+++ b/libc/stdio/gets.c
@@ -13,7 +13,11 @@ link_warning(gets, "the 'gets' function is dangerous and should not be used.")
libc_hidden_proto(getchar_unlocked)
libc_hidden_proto(__fgetc_unlocked)
+#ifdef __STDIO_GETC_MACRO
libc_hidden_proto(__stdin)
+#else
+#define __stdin stdin
+#endif
char *gets(char *s)
{