From 36809cc642eea7b146d94dcfba42f07f27cc8a00 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Mon, 15 Jan 2001 12:05:58 +0000 Subject: Use __STRING() macro instead of manually trying to do the same thing. From d@ --- sys/arch/alpha/include/cdefs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/alpha') diff --git a/sys/arch/alpha/include/cdefs.h b/sys/arch/alpha/include/cdefs.h index 034f411bd0c..902498fc71f 100644 --- a/sys/arch/alpha/include/cdefs.h +++ b/sys/arch/alpha/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.6 1999/02/04 23:30:18 niklas Exp $ */ +/* $OpenBSD: cdefs.h,v 1.7 2001/01/15 12:05:57 art Exp $ */ /* $NetBSD: cdefs.h,v 1.5 1996/10/12 18:08:12 cgd Exp $ */ /* @@ -40,9 +40,9 @@ #ifdef __STDC__ #define __weak_alias(alias,sym) \ - __asm__(".weak " #alias " ; " #alias " = " #sym) + __asm__(".weak " __STRING(alias) " ; " __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning." #sym " ; .ascii \"" msg "\" ; .text") + __asm__(".section .gnu.warning." __STRING(sym) " ; .ascii \"" msg "\" ; .text") #else /* !__STDC__ */ @@ -60,7 +60,7 @@ */ #ifdef __STDC__ -#define __weak_alias(alias,sym) __asm__(".weakext " #alias ", " #sym) +#define __weak_alias(alias,sym) __asm__(".weakext " __STRING(alias) ", " __STRING(sym)) #else /* !__STDC__ */ #define __weak_alias(alias,sym) __asm__(".weakext alias, sym") #endif /* !__STDC__ */ -- cgit v1.2.3