Fix gcc version checks for _mesa_bitcount
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Fri, 21 Oct 2011 00:14:05 +0000 (17:14 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 22 Oct 2011 01:39:50 +0000 (18:39 -0700)
commit8c509e1181fc8be85587f290b0a9337724fb7a7b
treed41c407aeed229f5668856b92b10b58b816fee33
parentdf8f864bf6fb8dfd256455a5310ef70f820a5350
Fix gcc version checks for  _mesa_bitcount

- Fix _GNUC__ typo in both checks
- Fix logic error in check for gcc < 3.4 that breaks for gcc 2.x & older

Without this fix, builds with gcc 3.4.x end up depending on undefined
_mesa_bitcount instead of gcc's __builtin_popcount.

NOTE: This is a candidate for the stable branches.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/imports.c
src/mesa/main/imports.h