浏览代码

Workarounds in cdefs-compat for clang.

Viral B. Shah 12 年之前
父节点
当前提交
62c895488f
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/cdefs-compat.h

+ 4 - 0
include/cdefs-compat.h

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