From: José Fonseca Date: Fri, 30 Jan 2009 14:59:32 +0000 (+0000) Subject: util: Define ffs for MinGW. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=462f09487efac27173c231b09861b4f5316eb11d;p=mesa.git util: Define ffs for MinGW. --- diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index aa4fa17b596..ab6f39ac31f 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -341,6 +341,10 @@ unsigned ffs( unsigned u ) } #endif +#ifdef __MINGW32__ +#define ffs __builtin_ffs +#endif + /** * Return float bits.