浏览代码

Build if GETC_MACRO use is disabled

Peter S. Mazinger 19 年之前
父节点
当前提交
3893e7e397
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      libc/stdio/gets.c

+ 4 - 0
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)
 {