xref: /openbsd/sys/arch/m88k/include/cdefs.h (revision 404b540a)
1 /*	$OpenBSD: cdefs.h,v 1.3 2006/01/10 00:04:04 millert Exp $ */
2 
3 /*
4  * Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
5  * Public domain.
6  */
7 
8 #ifndef	__MACHINE_CDEFS_H__
9 #define	__MACHINE_CDEFS_H__
10 
11 #if defined(lint)
12 #define __indr_reference(sym,alias)	__lint_equal__(sym,alias)
13 #define __warn_references(sym,msg)
14 #define __weak_alias(alias,sym)		__lint_equal__(sym,alias)
15 #elif defined(__GNUC__) && defined(__STDC__)
16 #define __indr_reference(sym,alias)			\
17 	__asm__(".stabs \"_" #alias "\",11,0,0,0");	\
18 	__asm__(".stabs \"_" #sym "\",1,0,0,0")
19 #define __warn_references(sym,msg)			\
20 	__asm__(".stabs \"" msg "\",30,0,0,0");		\
21 	__asm__(".stabs \"_" #sym "\",1,0,0,0")
22 #define __weak_alias(alias,sym)				\
23 	__asm__(".weak _" #alias "; _" #alias "= _" __STRING(sym))
24 #endif
25 
26 #endif /* __MACHINE_CDEFS_H__ */
27