gets-chk.c: Declare prototype for gets in C11 mode.

2015-01-22  Matthias Klose  <doko@ubuntu.com>

        * gets-chk.c: Declare prototype for gets in C11 mode.

From-SVN: r220018
This commit is contained in:
Matthias Klose 2015-01-22 22:47:31 +00:00 committed by Matthias Klose
parent 4c8932dc49
commit 85a1e6370b
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-01-22 Matthias Klose <doko@ubuntu.com>
* gets-chk.c: Declare prototype for gets in C11 mode.
2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/63784

View File

@ -51,6 +51,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
# include <string.h>
#endif
#if !(!defined __USE_ISOC11 \
|| (defined __cplusplus && __cplusplus <= 201103L))
extern char *gets (char *);
#endif
extern void __chk_fail (void) __attribute__((__noreturn__));
char *