From 2f1e982f5786abb667bba35444e636116873ff42 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 25 Feb 2018 15:34:59 +0200 Subject: libc: ugly dynamic_cast hack We should have option to use android's libstdc++ implementations as well. --- src/libc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/libc.c b/src/libc.c index 1bf984a..8419708 100644 --- a/src/libc.c +++ b/src/libc.c @@ -325,3 +325,10 @@ bionic_sysconf(int name) verbose("0x%x", name); return sysconf(bionic_sysconf_to_glibc_sysconf(name)); } + +void* +bionic___dynamic_cast(const void *src_ptr, const void *src_type, const void *dst_type, intptr_t src2dst) +{ + // HACK: we should use android's various libstdc++ implementations instead. + return (void*)src_ptr; +} -- cgit v1.2.3-70-g09d2