summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-25 15:34:59 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-25 15:34:59 +0200
commit2f1e982f5786abb667bba35444e636116873ff42 (patch)
treecd6499242728a8020d9937222ed8addb6637a2a0 /src
parent627d770b5cd550bd51234392f62eb7cea586d49e (diff)
libc: ugly dynamic_cast hack
We should have option to use android's libstdc++ implementations as well.
Diffstat (limited to 'src')
-rw-r--r--src/libc.c7
1 files changed, 7 insertions, 0 deletions
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;
+}