projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b537f54
)
mesa: fix gcc version check for _mesa_bitcount
author
Roland Scheidegger
<sroland@vmware.com>
Wed, 8 Jun 2011 22:45:03 +0000
(
00:45
+0200)
committer
Roland 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index f262b25c718150ffe6f05926f636de9649d6f6ef..0a572ec225d20657f5c71759ef9dd7dd33740504 100644
(file)
--- a/
src/mesa/main/imports.c
+++ b/
src/mesa/main/imports.c
@@
-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
/**