From: Paul Eggert Date: Tue, 26 Feb 2013 08:47:12 +0000 (+0530) Subject: Bring back definition of __attribute__ for non-gcc and older gcc X-Git-Tag: glibc-2.18~651 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7688c42e7cca0c24889f3a8f9b685783661fb24;p=platform%2Fupstream%2Fglibc.git Bring back definition of __attribute__ for non-gcc and older gcc gnulib copies this file over and needs it. --- diff --git a/ChangeLog b/ChangeLog index 8450c3c..cbf4083 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-02-26 Paul Eggert + + * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]: + Define __attribute__. + 2013-02-26 Siddhesh Poyarekar * locale/elem-hash.h (elem_hash): Mark as pure and possibly diff --git a/posix/regex_internal.h b/posix/regex_internal.h index 0521f74..3c94fbe 100644 --- a/posix/regex_internal.h +++ b/posix/regex_internal.h @@ -121,6 +121,10 @@ # 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;