From: Paul Eggert Date: Sat, 24 Sep 2005 23:01:17 +0000 (+0000) Subject: (__attribute): Define to nothing for GCC 2. X-Git-Tag: cvs-readonly~2892 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=ecc2024e30792790f371f62382ea2360e2135b47;p=gnulib.git (__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__(()). --- diff --git a/lib/regex_internal.h b/lib/regex_internal.h index 95df77cac..361647344 100644 --- 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)