diff options
author | Elliott Hughes <enh@google.com> | 2017-05-10 15:25:28 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-05-10 17:26:29 -0700 |
commit | bb13fc2135fca0eeaa45edc00a7083d443994e83 (patch) | |
tree | 0ae3a04d64b32bcf60b9384a10cc3798a29275fa /sources | |
parent | 52cb7d1b57d1ae6482d02971d1179eb7c0727222 (diff) | |
download | ndk-bb13fc2135fca0eeaa45edc00a7083d443994e83.tar.gz |
Cope with `gets` not being available in C++14.
Bug: https://github.com/android-ndk/ndk/issues/390
Test: new tests
Change-Id: I4fe1945e4e8e5d3ff558b56e58caba873248e582
Diffstat (limited to 'sources')
-rw-r--r-- | sources/cxx-stl/stlport/stlport/stl/_cstdio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/cxx-stl/stlport/stlport/stl/_cstdio.h b/sources/cxx-stl/stlport/stlport/stl/_cstdio.h index 67236f259..9946cabb8 100644 --- a/sources/cxx-stl/stlport/stlport/stl/_cstdio.h +++ b/sources/cxx-stl/stlport/stlport/stl/_cstdio.h @@ -94,7 +94,10 @@ using _STLP_VENDOR_CSTD::fwrite; using _STLP_VENDOR_CSTD::putchar; # endif +# if __cplusplus <= 201103L using _STLP_VENDOR_CSTD::gets; +# endif + # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400) using _STLP_VENDOR_CSTD::perror; # endif |