blob: 0963966927ce3828915a90ad5619b1a9fee47432 [file] [log] [blame]
Elliott Hughesf0ccdc52014-08-15 15:59:20 -07001/* Turn on our Android-specific changes until we can upstream them. */
2#define ANDROID_PATCHES
3
4#include <stddef.h>
5
Elliott Hughes8ebfa952015-02-05 11:07:37 -08006/* In libcxxabi. */
Elliott Hughesf0ccdc52014-08-15 15:59:20 -07007extern char* __cxa_demangle(const char*, char*, size_t*, int*);
8
9/* So we can say HAVE_CPLUS_DEMANGLE (since we don't have libbfd). */
10static inline char* cplus_demangle(const char* c, int i) {
11 return __cxa_demangle(c, 0, 0, 0);
12}