Merge "Unhide __set_errno for backwards compatibility."

This commit is contained in:
Elliott Hughes 2013-03-25 17:12:19 +00:00 committed by Gerrit Code Review
commit a40751185f

View file

@ -31,7 +31,8 @@
// This function is called from our assembler syscall stubs.
// C/C++ code should just assign 'errno' instead.
extern "C" __LIBC_HIDDEN__ int __set_errno(int n) {
// TODO: this should be __LIBC_HIDDEN__ but was exposed in <errno.h> in the NDK.
extern "C" int __set_errno(int n) {
errno = n;
return -1;
}