summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio')
-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)
{