summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/features.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/features.h b/include/features.h
index 7cb723b00..f86788fa4 100644
--- a/include/features.h
+++ b/include/features.h
@@ -79,10 +79,6 @@
#endif
-/* No C++ */
-#define __BEGIN_DECLS
-#define __END_DECLS
-
/* GNUish things */
#define __CONSTVALUE
#define __CONSTVALUE2
@@ -115,7 +111,8 @@
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) __asm__(".weak aliasname;aliasname = name");
+# define weak_alias(name, aliasname) \
+ asm(".global " #name ";.weak " #aliasname ";" #aliasname "=" #name ";");
#else
# define link_warning(symbol, msg) \
asm (".stabs \"" msg "\",30,0,0,0\n\t" \