diff options
author | David 'Digit' Turner <digit@google.com> | 2010-10-09 17:56:55 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-10-09 17:56:55 +0200 |
commit | bb5581ad6eec40041dab4e961149f7a8a3a83497 (patch) | |
tree | 5e8c1e583da643c37143adff205c6d794a0850c5 /libc/include/stdlib.h | |
parent | af00228b705b53165c132a22b30c2d6cbb9acd13 (diff) | |
download | bionic-bb5581ad6eec40041dab4e961149f7a8a3a83497.zip bionic-bb5581ad6eec40041dab4e961149f7a8a3a83497.tar.gz bionic-bb5581ad6eec40041dab4e961149f7a8a3a83497.tar.bz2 |
libc: tag missing functions in system headers.
This matches recent changes in the NDK header.
We enclose missing functions in #if 0 .. #endif blocks
with a clear "MISSING" in comments in order to locate
them later.
Change-Id: I87b3a62e777897e75c9243360fb0a82bcc53d9fb
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r-- | libc/include/stdlib.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index f889159..97d8e46 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -50,7 +50,6 @@ __BEGIN_DECLS extern __noreturn void exit(int); extern __noreturn void abort(void); extern int atexit(void (*)(void)); -extern int on_exit(void (*)(int, void *), void *); extern char *getenv(const char *); extern int putenv(const char *); @@ -164,6 +163,7 @@ typedef struct { extern lldiv_t lldiv(long long, long long); +#if 1 /* MISSING FROM BIONIC - ENABLED FOR STLPort and libstdc++-v3 */ /* make STLPort happy */ extern int mblen(const char *, size_t); extern size_t mbstowcs(wchar_t *, const char *, size_t); @@ -172,8 +172,14 @@ extern int mbtowc(wchar_t *, const char *, size_t); /* Likewise, make libstdc++-v3 happy. */ extern int wctomb(char *, wchar_t); extern size_t wcstombs(char *, const wchar_t *, size_t); +#endif /* MISSING */ + #define MB_CUR_MAX 1 +#if 0 /* MISSING FROM BIONIC */ +extern int on_exit(void (*)(int, void *), void *); +#endif /* MISSING */ + __END_DECLS #endif /* _STDLIB_H_ */ |