mesa: fix gcc version check for _mesa_bitcount
authorRoland Scheidegger <sroland@vmware.com>
Wed, 8 Jun 2011 22:45:03 +0000 (00:45 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 8 Jun 2011 23:14:50 +0000 (01:14 +0200)
The version check was bogus, and only inside a non-gcc block anyway.

src/mesa/main/imports.c

index f262b25..0a572ec 100644 (file)
@@ -511,9 +511,10 @@ _mesa_ffsll(int64_t val)
 
    return 0;
 }
+#endif
 
-
-#if ((_GNUC__ == 3 && __GNUC_MINOR__ < 4) || __GNUC__ < 4)
+#if !defined(__GNUC__) ||\
+   ((_GNUC__ == 3 && __GNUC_MINOR__ < 4) && __GNUC__ < 4)
 /**
  * Return number of bits set in given GLuint.
  */
@@ -527,7 +528,6 @@ _mesa_bitcount(unsigned int n)
    return bits;
 }
 #endif
-#endif
 
 
 /**