1 /* $OpenBSD: cdefs.h,v 1.4 2002/02/19 03:17:45 drahn Exp $ */ 2 /* $NetBSD: cdefs.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ 3 4 /* 5 * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. 6 * Public domain. 7 */ 8 9 #ifndef _POWERPC_CDEFS_H_ 10 #define _POWERPC_CDEFS_H_ 11 12 #ifdef __STDC__ 13 #define _C_LABEL(x) _STRING(_ ## x) 14 #else 15 #define _C_LABEL(x) _STRING(_/**/x) 16 #endif 17 18 #define __weak_alias(alias,sym) \ 19 __asm__(".weak " __STRING(alias) " ; " __STRING(alias) " = " __STRING(sym)) 20 #define __warn_references(sym,msg) \ 21 __asm__(".section .gnu.warning." __STRING(sym) " ; .ascii \"" msg "\" ; .text") 22 23 #endif /* !_POWERPC_CDEFS_H_ */ 24