Add a WEAK_ALIAS macro.

While here, use #if instead of #ifdef for __STDC__ check.
This commit is contained in:
simonb 2003-12-06 14:06:28 +00:00
parent 5fc19197d5
commit c8ee7b6dd7

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.14 1998/12/02 21:16:46 thorpej Exp $ */
/* $NetBSD: asm.h,v 1.15 2003/12/06 14:06:28 simonb Exp $ */
/*
* Mach Operating System
@ -39,7 +39,7 @@
#ifndef _MACHINE_ASM_H_
#define _MACHINE_ASM_H_
#ifdef __STDC__
#if __STDC__
#define CAT(a, b) a ## b
#else
#define CAT(a, b) a/**/b
@ -215,6 +215,10 @@
#endif
#define WEAK_ALIAS(alias,sym) \
.weak _C_LABEL(alias); \
_C_LABEL(alias) = _C_LABEL(sym)
#ifdef __STDC__
#define __STRING(x) #x
#define WARN_REFERENCES(sym,msg) \