gcc-3.4 has __builtin_{ctz,popcount}.
authorayin <ayin>
Tue, 26 Jun 2007 10:46:28 +0000 (10:46 +0000)
committerayin <ayin>
Tue, 26 Jun 2007 10:46:28 +0000 (10:46 +0000)
src/rxvtutil.h

index 11831e0bbb0d0870165f97d7f7196f67a5b87f88..98af695261b848d92ed80ab327018d258a2397f4 100644 (file)
@@ -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__