From: José Fonseca Date: Tue, 22 Feb 2011 14:59:09 +0000 (+0000) Subject: mesa: Avoid undeclared ffs function warning on mingw. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6cedd43feccb9341c597329e28bb432c491939f;p=mesa.git mesa: Avoid undeclared ffs function warning on mingw. --- diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index a994dbcae8c..ce7baabe2c7 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -540,6 +540,12 @@ extern void _mesa_init_sqrt_table(void); #ifdef __GNUC__ + +#ifdef __MINGW32__ +#define ffs __builtin_ffs +#define ffsll __builtin_ffsll +#endif + #define _mesa_ffs(i) ffs(i) #define _mesa_ffsll(i) ffsll(i)