(__attribute): Define to nothing for GCC 2.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Sep 2005 22:59:06 +0000 (22:59 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Sep 2005 22:59:06 +0000 (22:59 +0000)
This works around a core dump on OpenBSD 3.4, which has GCC
2.95.3, which dumps core when given __attribute__(()).

lib/regex_internal.h

index 95df77c..3616473 100644 (file)
 # define attribute_hidden
 #endif /* not _LIBC */
 
-#ifdef __GNUC__
+#if __GNUC__ >= 3
 # define __attribute(arg) __attribute__ (arg)
 #else
 # define __attribute(arg)