NetBSD/sys/arch/bebox/include/cdefs.h

37 lines
855 B
C

/* $NetBSD: cdefs.h,v 1.1 1997/10/14 06:48:09 sakamoto Exp $ */
#ifndef _MACHINE_CDEFS_H_
#define _MACHINE_CDEFS_H_
#define _C_LABEL(x) _STRING(x)
#define __DO_NOT_DO_WEAK__ /* NO WEAK SYMS IN LIBC YET */
#ifndef __DO_NOT_DO_WEAK__
#define __indr_reference(sym, alias) /* use weak symbols instead */
#endif
#ifdef __STDC__
#ifndef __DO_NOT_DO_WEAK__
#define __weak_alias(alias, sym) \
__asm__(".weak " #alias " ; " #alias " = " #sym)
#endif
#define __warn_references(sym, msg) \
__asm__(".section .gnu.warning." #sym " ; .ascii \"" msg "\" ; .text")
#else /* ! __STDC__ */
#ifndef __DO_NOT_DO_WEAK__
#define __weak_alias(alias, sym) \
__asm__(".weak alias ; alias = sym")
#endif
#define __warn_references(sym, msg) \
__asm__(".section .gnu.warning.sym ; .ascii msg ; .text")
#endif /* __STDC__ */
#endif /* !_MACHINE_CDEFS_H_ */