at v206 921 B view raw
1--- recutils-1.5/lib/stdio.in.h 2+++ recutils-1.5/lib/stdio.in.h 3@@ -699,22 +699,11 @@ 4 # endif 5 #endif 6 7-#if @GNULIB_GETS@ 8-# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ 9-# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 10-# undef gets 11-# define gets rpl_gets 12-# endif 13-_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1))); 14-_GL_CXXALIAS_RPL (gets, char *, (char *s)); 15-# else 16-_GL_CXXALIAS_SYS (gets, char *, (char *s)); 17-# undef gets 18-# endif 19-_GL_CXXALIASWARN (gets); 20 /* It is very rare that the developer ever has full control of stdin, 21- so any use of gets warrants an unconditional warning. Assume it is 22- always declared, since it is required by C89. */ 23+ so any use of gets warrants an unconditional warning; besides, C11 24+ removed it. */ 25+#undef gets 26+#if HAVE_RAW_DECL_GETS 27 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 28 #endif 29