summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-01-15 12:05:58 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-01-15 12:05:58 +0000
commit36809cc642eea7b146d94dcfba42f07f27cc8a00 (patch)
tree0a47f81d9038f8e922a7dd064579a9193c738af0 /sys
parent6845ce915fdec358a50bfbaa3f3c84fc17808769 (diff)
Use __STRING() macro instead of manually trying to do the same thing.
From d@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/include/cdefs.h8
1 files changed, 4 insertions, 4 deletions
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__ */