From: ayin Date: Tue, 26 Jun 2007 10:46:28 +0000 (+0000) Subject: gcc-3.4 has __builtin_{ctz,popcount}. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=0d7989d75994038850f8177e8956d40336d1f31b;p=dana%2Furxvt.git gcc-3.4 has __builtin_{ctz,popcount}. --- diff --git a/src/rxvtutil.h b/src/rxvtutil.h index 11831e0b..98af6952 100644 --- a/src/rxvtutil.h +++ b/src/rxvtutil.h @@ -11,8 +11,7 @@ using namespace std; #define PP_STRINGIFY_(a) #a #define PP_STRINGIFY(a) PP_STRINGIFY_(a) -// actually, some gcc-3.x versions work, too -#define HAVE_GCC_BUILTINS (__GNUC__ >= 4) +#define HAVE_GCC_BUILTINS (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ == 4)) #ifndef __attribute__ # if __GNUC__