diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-04-19 18:32:11 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-04-19 18:32:11 +0300 |
commit | 51d3ed79ed63d524374f2c7f0f47687491c93503 (patch) | |
tree | 8fc44422fe2d5e1296ecad611d2d073fd94158c6 | |
parent | 37101812cec1b22925f82e0bd68545f289fa3753 (diff) |
libc: support only android's libstdc++
Supporting host libstdc++ is going to be complicated.
Because c++'s ABI is unstable and mess.
-rw-r--r-- | src/libc.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -351,31 +351,6 @@ bionic_sysconf(int name) return sysconf(bionic_sysconf_to_glibc_sysconf(name)); } -#if 1 -// gcc's libstdc++ -void* -bionic___dynamic_cast(const void *src_ptr, const void *src_type, const void *dst_type, intptr_t src2dst) -{ - return (void*)src_ptr; -} -#else -// android's libstdc++ -# include <sys/time.h> -# include <linux/futex.h> - -int -bionic___futex_wait(volatile void* ftx, int value, const struct timespec* timeout) -{ - return syscall(SYS_futex, ftx, FUTEX_WAIT, value, timeout, 0); -} - -int -bionic___futex_wake(volatile void* ftx, int count) -{ - return syscall(SYS_futex, ftx, FUTEX_WAKE, count, NULL, 0); -} -#endif - #ifdef VERBOSE_FUNCTIONS # include "libc-verbose.h" #endif |