Project

General

Profile

530_gets.patch

patch for libmissing/stdio.in.h - , 04/19/2013 10:44 AM

Download (804 Bytes)

View differences:

libmissing/stdio.in.h
113 113
                 "use gnulib module fflush for portable POSIX compliance");
114 114
#endif
115 115

  
116
/* Since gcc 4.6, ISOC11 is implemented and no longer defined gets.	*/
117
#if !defined __ISOC11 \
118
|| (defined __cplusplus && __cplusplus <= 201103L)
116 119
/* It is very rare that the developer ever has full control of stdin,
117 120
   so any use of gets warrants an unconditional warning.  Assume it is
118 121
   always declared, since it is required by C89.  */
119 122
#undef gets
120 123
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
124
#endif
121 125

  
122 126
#if @GNULIB_FOPEN@
123 127
# if @REPLACE_FOPEN@