aboutsummaryrefslogtreecommitdiff
path: root/android-fixes.h
blob: 0963966927ce3828915a90ad5619b1a9fee47432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Turn on our Android-specific changes until we can upstream them. */
#define ANDROID_PATCHES

#include <stddef.h>

/* In libcxxabi. */
extern char* __cxa_demangle(const char*, char*, size_t*, int*);

/* So we can say HAVE_CPLUS_DEMANGLE (since we don't have libbfd). */
static inline char* cplus_demangle(const char* c, int i) {
  return __cxa_demangle(c, 0, 0, 0);
}