diff options
Diffstat (limited to 'libc/private/bionic_defs.h')
-rw-r--r-- | libc/private/bionic_defs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/private/bionic_defs.h b/libc/private/bionic_defs.h index 1d4f86b9b..5a48f259c 100644 --- a/libc/private/bionic_defs.h +++ b/libc/private/bionic_defs.h @@ -33,7 +33,15 @@ * This label is used to mark libc/libdl symbols that may need to be replaced * by native bridge implementation. */ +#ifdef __ANDROID_NATIVE_BRIDGE__ #define __BIONIC_WEAK_FOR_NATIVE_BRIDGE __attribute__((__weak__, __noinline__)) #define __BIONIC_WEAK_VARIABLE_FOR_NATIVE_BRIDGE __attribute__((__weak__)) +#define __BIONIC_WEAK_FOR_NATIVE_BRIDGE_INLINE \ + __BIONIC_WEAK_FOR_NATIVE_BRIDGE extern "C" __LIBC_HIDDEN__ +#else +#define __BIONIC_WEAK_FOR_NATIVE_BRIDGE +#define __BIONIC_WEAK_VARIABLE_FOR_NATIVE_BRIDGE +#define __BIONIC_WEAK_FOR_NATIVE_BRIDGE_INLINE static inline +#endif #endif /* __BIONIC_PRIVATE_BIONIC_DEFS_H_ */ |