diff options
author | Dan Albert <danalbert@google.com> | 2018-05-22 11:08:11 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2018-05-22 21:53:00 +0000 |
commit | 44244c14a5a0727733137dcbea47474cec8debe8 (patch) | |
tree | ce73371b6d4ab5dc6351d6389d0341c4e7ef1269 | |
parent | a511ded040ac6c61325d8066599a3beb417ef83a (diff) | |
download | external_libcxx-ndk-r17b.tar.gz external_libcxx-ndk-r17b.tar.bz2 external_libcxx-ndk-r17b.zip |
Don't expose fgetpos/fsetpos when not available.ndk-r17b
When _FILE_OFFSET_BITS=64, these are actually fgetpos64/fsetpos64 on
LP32, which are not available until N.
Test: ndk/checkbuild.py
Bug: https://github.com/android-ndk/ndk/issues/480
Change-Id: I1b61b7da3b1bc5d0b4a751b1f511a81da842d4ce
(cherry picked from commit 062b3ee03256a223dd57bad5f5e0a1490e6996c9)
-rw-r--r-- | include/cstdio | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cstdio b/include/cstdio index 00b989fad..4b2d961e6 100644 --- a/include/cstdio +++ b/include/cstdio @@ -132,9 +132,15 @@ using ::putc; using ::ungetc; using ::fread; using ::fwrite; +#if !defined(__ANDROID__) || !defined(__USE_FILE_OFFSET64) || \ + (__ANDROID_API__ >= __ANDROID_API_N__) using ::fgetpos; +#endif using ::fseek; +#if !defined(__ANDROID__) || !defined(__USE_FILE_OFFSET64) || \ + (__ANDROID_API__ >= __ANDROID_API_N__) using ::fsetpos; +#endif using ::ftell; using ::rewind; using ::clearerr; |