projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aeb610
)
mesa: Avoid undeclared ffs function warning on mingw.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 22 Feb 2011 14:59:09 +0000
(14:59 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 22 Feb 2011 14:59:09 +0000
(14:59 +0000)
src/mesa/main/imports.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.h
b/src/mesa/main/imports.h
index a994dbcae8c9681865c78400af5e5e78bac155b7..ce7baabe2c7a7b7f8c5682b8a91dee1e7aad781a 100644
(file)
--- 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)