From c83fb4d45f2a47042f395271efe6e5489b2c4aee Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 9 Dec 2011 20:05:27 +0000 Subject: util: Add strings.h include on unices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes -Wimplicit-function-declaration for ffs with GCC. Spotted/tested by Kai Wasserbäch. --- 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 f908341f62..404bd21e1c 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -51,6 +51,10 @@ extern "C" { #include #include +#ifdef PIPE_OS_UNIX +#include /* for ffs */ +#endif + #ifndef M_SQRT2 #define M_SQRT2 1.41421356237309504880 -- cgit v1.2.3