From bcbf416f712a2219d7d1ace67330d3dac0040587 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 11 Jul 2001 03:47:56 +0000 Subject: Seems weak_alias wasn't working as expected... --- include/features.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/features.h b/include/features.h index af64066d9..7cb723b00 100644 --- a/include/features.h +++ b/include/features.h @@ -115,8 +115,7 @@ asm (".section " ".gnu.warning." #symbol "\n\t.previous"); \ static const char __evoke_link_warning_##symbol[] \ __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg; -# define weak_alias(name, aliasname) \ - extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); +# define weak_alias(name, aliasname) __asm__(".weak aliasname;aliasname = name"); #else # define link_warning(symbol, msg) \ asm (".stabs \"" msg "\",30,0,0,0\n\t" \ -- cgit v1.2.3