summaryrefslogtreecommitdiff
path: root/include/features.h
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2001-07-11 13:30:27 +0000
committerDavid McCullough <davidm@snapgear.com>2001-07-11 13:30:27 +0000
commit635c2432c74546f31e2d00de857c769ff16a0a4e (patch)
treed0cb3526441fef33dc09108ba725c3c7b7fdbadd /include/features.h
parent8ccf39ef91cb4dde804e6fecbe571513668a90ef (diff)
The weak_alias macro was not genertaing asm with the correct alias names.
Start of the C++ header changes.
Diffstat (limited to 'include/features.h')
-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" \