[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] PATCH: localedef does not build on trunk
- To: patches@xxxxxxxxxx
- Subject: [patches] PATCH: localedef does not build on trunk
- From: Khem Raj <kraj@xxxxxxxxxx>
- Date: Tue, 27 Mar 2007 16:55:33 -0700
Hi
After the patch to handle extern inline went in glibc upstream.
localedef depends on glibc files which need these macros now
and localedef defines its own cdefs.h so we need to have these
definitions in localedef header file.
Here is a small patch which defines the new macros.
Thanks
-Khem
localedef/Changelog.eglibc
2007-03-27 Khem Raj <kraj@xxxxxxxxxx>
* include/sys/cdefs.h: (__extern_inline, __extern_always_inline):
Define.
Index: include/sys/cdefs.h
===================================================================
--- include/sys/cdefs.h (revision 1823)
+++ include/sys/cdefs.h (working copy)
@@ -25,3 +25,14 @@
#ifndef __flexarr
#define __flexarr [0]
#endif
+
+#ifndef __extern_inline
+#ifdef __GNUC_STDC_INLINE__
+# define __extern_inline extern __inline __attribute__ ((__gnu_inline__))
+# define __extern_always_inline \
+ extern __always_inline __attribute__ ((__gnu_inline__))
+#else
+# define __extern_inline extern __inline
+# define __extern_always_inline extern __always_inline
+#endif
+#endif