diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/features.h | 3 |
1 files changed, 1 insertions, 2 deletions
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" \ |