summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include/cdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/alpha/include/cdefs.h')
-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__ */