From 462f09487efac27173c231b09861b4f5316eb11d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 30 Jan 2009 14:59:32 +0000 Subject: [PATCH] util: Define ffs for MinGW. --- src/gallium/auxiliary/util/u_math.h | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.30.2