Revert "Hide declaration of gets(3) for C11 and later."

Breaks stlport. checkbuild lied to me?

This reverts commit c0ce5908277a9bf18628946629dba4277e9a2281.

Change-Id: I72fb21aba7eaea96a7c3208236fd03411527fa5e
This commit is contained in:
Dan Albert 2014-06-17 23:23:59 +00:00
parent c0ce590827
commit 1291680c2a
2 changed files with 0 additions and 4 deletions

View File

@ -254,9 +254,7 @@ int dprintf(int, const char * __restrict, ...) __printflike(2, 3);
int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
#ifndef __AUDIT__
#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L
char* gets(char*) __warnattr("gets is very unsafe; consider using fgets");
#endif
int sprintf(char* __restrict, const char* __restrict, ...)
__printflike(2, 3) __warnattr("sprintf is often misused; please use snprintf");
char* tmpnam(char*) __warnattr("tmpnam possibly used unsafely; consider using mkstemp");

View File

@ -63,9 +63,7 @@ using ::ftell;
using ::fwrite;
using ::getc;
using ::getchar;
#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L
using ::gets;
#endif
using ::perror;
using ::printf;
using ::putc;