gallium/util: add missing u_debug include
authorAndreas Boll <andreas.boll.dev@gmail.com>
Fri, 12 Sep 2014 08:11:24 +0000 (10:11 +0200)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Fri, 12 Sep 2014 13:55:12 +0000 (15:55 +0200)
Needed for assert.
Fixes build on BE archs with -Werror=implicit-function-declaration.

In file included from
../../../../../src/gallium/auxiliary/draw/draw_fs.c:30:0:
../../../../../src/gallium/auxiliary/util/u_math.h: In function
'util_memcpy_cpu_to_le32':
../../../../../src/gallium/auxiliary/util/u_math.h:810:4: error:
implicit declaration of function 'assert'
[-Werror=implicit-function-declaration]
    assert(n % 4 == 0);
        ^

Cc: "10.3" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_math.h

index 25bcfb57d8ec4d928bd03b61e495608963b332be..39bd40fa1535510ffc279b50947ce368c51f18d2 100644 (file)
@@ -40,6 +40,7 @@
 
 
 #include "pipe/p_compiler.h"
+#include "util/u_debug.h"
 
 
 #ifdef __cplusplus