From c8ee7b6dd7ae17f6f7024436f853eaeb445c37c1 Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 6 Dec 2003 14:06:28 +0000 Subject: [PATCH] Add a WEAK_ALIAS macro. While here, use #if instead of #ifdef for __STDC__ check. --- sys/arch/pc532/include/asm.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/pc532/include/asm.h b/sys/arch/pc532/include/asm.h index eacda4d57b7a..b640033267b3 100644 --- a/sys/arch/pc532/include/asm.h +++ b/sys/arch/pc532/include/asm.h @@ -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) \