Workarounds in cdefs-compat for clang.

This commit is contained in:
Viral B. Shah 2012-07-03 16:24:32 +05:30
parent 5656ce4296
commit 62c895488f

View file

@ -49,6 +49,10 @@
__asm__(".asciz \"msg\""); \ __asm__(".asciz \"msg\""); \
__asm__(".previous") __asm__(".previous")
#endif /* __STDC__ */ #endif /* __STDC__ */
#elif defined(__clang__) /* CLANG */
#define __weak_reference(sym,alias) \
__asm__(".weak_reference alias");\
__asm__(".set alias, sym")
#else /* !__ELF__ */ #else /* !__ELF__ */
#ifdef __STDC__ #ifdef __STDC__
#define __weak_reference(sym,alias) \ #define __weak_reference(sym,alias) \