changeset 6294:e728fde8000b

(__attribute): Define to nothing for GCC 2. This works around a core dump on OpenBSD 3.4, which has GCC 2.95.3, which dumps core when given __attribute__(()).
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 24 Sep 2005 23:01:17 +0000
parents b3a7dbaec713
children 26aeca19bf5e
files lib/regex_internal.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/regex_internal.h
+++ b/lib/regex_internal.h
@@ -131,7 +131,7 @@
 # define attribute_hidden
 #endif /* not _LIBC */
 
-#ifdef __GNUC__
+#if __GNUC__ >= 3
 # define __attribute(arg) __attribute__ (arg)
 #else
 # define __attribute(arg)