summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-02-22 14:59:09 +0000
committerJosé Fonseca <[email protected]>2011-02-22 14:59:09 +0000
commitc6cedd43feccb9341c597329e28bb432c491939f (patch)
tree168866e688aa9410a79ed5f0134fcb9a20502bfc /src/mesa
parent7aeb610fe1b2656070f25e0647ccccfbfc89941c (diff)
mesa: Avoid undeclared ffs function warning on mingw.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/imports.h6
1 files changed, 6 insertions, 0 deletions
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)