mesa/gallium: add FFS_DEFINED to protect ffs() from multiple definitions
authorBrian Paul <brianp@vmware.com>
Thu, 12 Jan 2012 15:41:24 +0000 (08:41 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 12 Jan 2012 16:18:34 +0000 (09:18 -0700)
commiteab036a6eaebd532f88c49bd26550c6225f96005
tree65d15be2efd4fd2cbb31f3c35aae425d74a6d4df
parent8cfaab59e0875bff92179aacfffd690c805906ef
mesa/gallium: add FFS_DEFINED to protect ffs() from multiple definitions

We include both imports.h and u_math.h in the state tracker.  This
leads to multiple, conflicting definitions of ffs() with MSVC.
Use FFS_DEFINED to skip the ffs() in u_math.h.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_math.h
src/mesa/main/imports.h