BeBuild.h: Fix B_DEFINE_WEAK_ALIAS for use in C++ code
This commit is contained in:
parent
efe2665986
commit
a05e0af507
@ -82,8 +82,14 @@
|
||||
#define B_DEFINE_SYMBOL_VERSION(function, versionedSymbol) \
|
||||
__asm__(".symver " function "," versionedSymbol)
|
||||
|
||||
#define B_DEFINE_WEAK_ALIAS(name, alias_name) \
|
||||
__typeof(name) alias_name __attribute__((weak, alias(#name)))
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define B_DEFINE_WEAK_ALIAS(name, alias_name) \
|
||||
extern "C" __typeof(name) alias_name __attribute__((weak, alias(#name)))
|
||||
#else
|
||||
# define B_DEFINE_WEAK_ALIAS(name, alias_name) \
|
||||
__typeof(name) alias_name __attribute__((weak, alias(#name)))
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _BE_BUILD_H */
|
||||
|
Loading…
Reference in New Issue
Block a user