[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r17053 - in /trunk/localedef: ChangeLog.eglibc Makefile.in include/sys/cdefs.h



Author: joseph
Date: Wed Feb  8 21:01:30 2012
New Revision: 17053

Log:
	* Makefile.in (DEFINES): Add -DIN_GLIBC_LOCALEDEF.
	* include/sys/cdefs.h (__attribute_alloc_size): Define.

Modified:
    trunk/localedef/ChangeLog.eglibc
    trunk/localedef/Makefile.in
    trunk/localedef/include/sys/cdefs.h

Modified: trunk/localedef/ChangeLog.eglibc
==============================================================================
--- trunk/localedef/ChangeLog.eglibc (original)
+++ trunk/localedef/ChangeLog.eglibc Wed Feb  8 21:01:30 2012
@@ -1,3 +1,8 @@
+2012-02-08  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* Makefile.in (DEFINES): Add -DIN_GLIBC_LOCALEDEF.
+	* include/sys/cdefs.h (__attribute_alloc_size): Define.
+
 2011-09-21  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* configure.ac: Test for locale_t.

Modified: trunk/localedef/Makefile.in
==============================================================================
--- trunk/localedef/Makefile.in (original)
+++ trunk/localedef/Makefile.in Wed Feb  8 21:01:30 2012
@@ -26,7 +26,8 @@
 		  -DCHARMAP_PATH='"$(i18ndir)/charmaps"' \
 		  -DREPERTOIREMAP_PATH='"$(i18ndir)/repertoiremaps"' \
 		  -DLOCSRCDIR='"$(i18ndir)/locales"' \
-		  -DNOT_IN_libc
+		  -DNOT_IN_libc \
+		  -DIN_GLIBC_LOCALEDEF
 INCLUDES	= -Iglibc/locale/programs \
 		  -I$(srcdir)/include \
 		  -Iglibc/locale \

Modified: trunk/localedef/include/sys/cdefs.h
==============================================================================
--- trunk/localedef/include/sys/cdefs.h (original)
+++ trunk/localedef/include/sys/cdefs.h Wed Feb  8 21:01:30 2012
@@ -46,3 +46,10 @@
      name proto __asm__ (__ASMNAME (#alias)) __THROW
 # endif
 #endif
+
+#if defined(__GNUC__) \
+    && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
+# define __attribute_alloc_size(...) __attribute__ ((alloc_size (__VA_ARGS__)))
+#else
+# define __attribute_alloc_size(...)
+#endif

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits