aboutsummaryrefslogtreecommitdiff
path: root/posix/regex_internal.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-02-26 14:17:12 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-02-26 14:17:12 +0530
commitb7688c42e7cca0c24889f3a8f9b685783661fb24 (patch)
treea079554d3debd364197d8dbbb45f4e91a9084ee9 /posix/regex_internal.h
parent53a5c423fb77a0befa400b4672ac98cf910db986 (diff)
downloadglibc-b7688c42e7cca0c24889f3a8f9b685783661fb24.tar
glibc-b7688c42e7cca0c24889f3a8f9b685783661fb24.tar.gz
glibc-b7688c42e7cca0c24889f3a8f9b685783661fb24.tar.bz2
glibc-b7688c42e7cca0c24889f3a8f9b685783661fb24.zip
Bring back definition of __attribute__ for non-gcc and older gcc
gnulib copies this file over and needs it.
Diffstat (limited to 'posix/regex_internal.h')
-rw-r--r--posix/regex_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
index 0521f74048..3c94fbed7d 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;