+2012-01-12 Marek Polacek <polacek@redhat.com>
+
+ * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
+ and _GNU_SOURCE.
+
2012-01-04 Will Schmidt <will_schmidt@vnet.ibm.com>
* powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
#endif
+#if !defined __USE_ISOC11 \
+ || (defined __cplusplus && __cplusplus <= 201103L && !defined __USE_GNU)
extern char *__gets_chk (char *__str, size_t) __wur;
extern char *__REDIRECT (__gets_warn, (char *__str), gets)
__wur __warnattr ("please use fgets or getline instead, gets can't "
return __gets_chk (__str, __bos (__str));
return __gets_warn (__str);
}
+#endif
extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,
FILE *__restrict __stream) __wur;