From: Paul Eggert Date: Sat, 24 Sep 2005 22:59:06 +0000 (+0000) Subject: (__attribute): Define to nothing for GCC 2. X-Git-Tag: v5.90~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a29d2d43060218d520d2f078784466d14128454;p=thirdparty%2Fcoreutils.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 95df77cac0..3616473446 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)