diff options
author | Dan Albert <danalbert@google.com> | 2014-06-17 23:23:59 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-06-17 23:28:38 +0000 |
commit | 1291680c2a0c23b2163198d27e00261ca206298b (patch) | |
tree | e4b34e6e1b1d2c8e182e5afa18651870779b5665 | |
parent | c0ce5908277a9bf18628946629dba4277e9a2281 (diff) | |
download | bionic-1291680c2a0c23b2163198d27e00261ca206298b.zip bionic-1291680c2a0c23b2163198d27e00261ca206298b.tar.gz bionic-1291680c2a0c23b2163198d27e00261ca206298b.tar.bz2 |
Revert "Hide declaration of gets(3) for C11 and later."
Breaks stlport. checkbuild lied to me?
This reverts commit c0ce5908277a9bf18628946629dba4277e9a2281.
Change-Id: I72fb21aba7eaea96a7c3208236fd03411527fa5e
-rw-r--r-- | libc/include/stdio.h | 2 | ||||
-rw-r--r-- | libstdc++/include/cstdio | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/libc/include/stdio.h b/libc/include/stdio.h index 6110932..62acb3a 100644 --- a/libc/include/stdio.h +++ b/libc/include/stdio.h @@ -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"); diff --git a/libstdc++/include/cstdio b/libstdc++/include/cstdio index 25838ad..3c8b5c6 100644 --- a/libstdc++/include/cstdio +++ b/libstdc++/include/cstdio @@ -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; |