Browse Source

Seems weak_alias wasn't working as expected...

Eric Andersen 24 years ago
parent
commit
bcbf416f71
1 changed files with 1 additions and 2 deletions
  1. 1 2
      include/features.h

+ 1 - 2
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" \