1 /* $OpenBSD: cdefs.h,v 1.2 2005/11/24 20:46:44 deraadt Exp $ */ 2 3 #ifndef _MACHINE_CDEFS_H_ 4 #define _MACHINE_CDEFS_H_ 5 6 #if defined(lint) 7 #define __indr_reference(sym,alias) __lint_equal__(sym,alias) 8 #define __warn_references(sym,msg) 9 #define __weak_alias(alias,sym) __lint_equal__(sym,alias) 10 #elif defined(__GNUC__) && defined(__STDC__) 11 #define __weak_alias(alias,sym) \ 12 __asm__(".weak " __STRING(alias) " ; " __STRING(alias) \ 13 " = " __STRING(sym)); 14 #define __warn_references(sym,msg) \ 15 __asm__(".section .gnu.warning." __STRING(sym) \ 16 " ; .ascii \"" msg "\" ; .text"); 17 #endif 18 19 #endif /* !_MACHINE_CDEFS_H_ */ 20