]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Bring back definition of __attribute__ for non-gcc and older gcc
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 26 Feb 2013 08:47:12 +0000 (14:17 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 26 Feb 2013 08:47:12 +0000 (14:17 +0530)
gnulib copies this file over and needs it.

ChangeLog
posix/regex_internal.h

index 8450c3ce6da925b3cb34c66166abacc1589483ff..cbf4083f0d5db6a54e27ba1d4c5c6fd2e3b7b1ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
+       Define __attribute__.
+
 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * locale/elem-hash.h (elem_hash): Mark as pure and possibly
index 0521f74048f0b0d32a3e8264582be8c694922e2e..3c94fbed7db952a74adb7f8e732c73e15038bb33 100644 (file)
 # define attribute_hidden
 #endif /* not _LIBC */
 
+#if __GNUC__ < 3 + (__GNUC_MINOR__ < 1)
+# define __attribute__(arg)
+#endif
+
 extern const char __re_error_msgid[] attribute_hidden;
 extern const size_t __re_error_msgid_idx[] attribute_hidden;