projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f188c0d
)
util: Add strings.h include on unices
author
José Fonseca
<jfonseca@vmware.com>
Fri, 9 Dec 2011 20:05:27 +0000
(20:05 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 9 Dec 2011 20:17:34 +0000
(20:17 +0000)
Fixes -Wimplicit-function-declaration for ffs with GCC. Spotted/tested
by Kai Wasserbäch.
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index f908341f6242e5dbbf2edc8edba365ef45ba874d..404bd21e1c595532533410d8fa52221d71633f7e 100644
(file)
--- a/
src/gallium/auxiliary/util/u_math.h
+++ b/
src/gallium/auxiliary/util/u_math.h
@@
-51,6
+51,10
@@
extern "C" {
#include <math.h>
#include <stdarg.h>
+#ifdef PIPE_OS_UNIX
+#include <strings.h> /* for ffs */
+#endif
+
#ifndef M_SQRT2
#define M_SQRT2 1.41421356237309504880