Skip to content

Commit

Permalink
strerror_r updates from build 3769769.
Browse files Browse the repository at this point in the history
This is a partial https://android-review.googlesource.com/c/343952/.

We shipped this in r14, but r15 beta 1 is shipping the O oreview
headers, which is older than this change.

Test: ./validate.py
Bug: android/ndk#324
Change-Id: Ib301aba158f014d4fe2bf49aa7f2c1044c582f31
(cherry picked from commit 4e12436cc5af230b083e07ef3bea1d8ef1af1cf0)
  • Loading branch information
DanAlbert committed Mar 20, 2017
1 parent 3ec4214 commit 6b29d04
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions platform/sysroot/usr/include/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,8 @@ char* strerror(int);
char* strerror_l(int, locale_t) __INTRODUCED_IN(23);
#endif /* __ANDROID_API__ >= 23 */

#if defined(__USE_GNU)

#if __ANDROID_API__ >= 23
#if defined(__USE_GNU) && __ANDROID_API__ >= 23
char* strerror_r(int, char*, size_t) __RENAME(__gnu_strerror_r) __INTRODUCED_IN(23);
#endif /* __ANDROID_API__ >= 23 */

#else /* POSIX */
int strerror_r(int, char*, size_t);
#endif
Expand Down

0 comments on commit 6b29d04

Please sign in to comment.