summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxim <maxim@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2010-06-29 16:36:45 +0000
committermaxim <maxim@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2010-06-29 16:36:45 +0000
commit48fcb1f856cf90918d365ae5b7c8734c50a45b23 (patch)
treeb6542d34aa5e57df5619947843d26c9f8fd0fd72
parent6d5d61ad6033044a890eeecdcc60427f5e52d03d (diff)
downloadeglibc2-48fcb1f856cf90918d365ae5b7c8734c50a45b23.tar.gz
* include/sys/cdefs.h (__REDIRECT_NTH): Define if not present in host
headers. git-svn-id: svn://svn.eglibc.org/trunk@10850 7b3dc134-2b1b-0410-93df-9e9f96275f8d
-rw-r--r--localedef/ChangeLog.eglibc5
-rw-r--r--localedef/include/sys/cdefs.h10
2 files changed, 15 insertions, 0 deletions
diff --git a/localedef/ChangeLog.eglibc b/localedef/ChangeLog.eglibc
index 4b32ece83..97e59601b 100644
--- a/localedef/ChangeLog.eglibc
+++ b/localedef/ChangeLog.eglibc
@@ -1,3 +1,8 @@
+2010-06-29 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * include/sys/cdefs.h (__REDIRECT_NTH): Define if not present in host
+ headers.
+
2009-08-03 Joseph Myers <joseph@codesourcery.com>
* Makefile.in (datarootdir): Define.
diff --git a/localedef/include/sys/cdefs.h b/localedef/include/sys/cdefs.h
index 0cae14e7c..32139c28c 100644
--- a/localedef/include/sys/cdefs.h
+++ b/localedef/include/sys/cdefs.h
@@ -36,3 +36,13 @@
# define __extern_always_inline extern __always_inline
#endif
#endif
+
+#if !defined(__REDIRECT_NTH) && defined(__GNUC__) && __GNUC__ >= 2
+# ifdef __cplusplus
+# define __REDIRECT_NTH(name, proto, alias) \
+ name proto __THROW __asm__ (__ASMNAME (#alias))
+# else
+# define __REDIRECT_NTH(name, proto, alias) \
+ name proto __asm__ (__ASMNAME (#alias)) __THROW
+# endif
+#endif