From: Andreas Boll Date: Fri, 12 Sep 2014 08:11:24 +0000 (+0200) Subject: gallium/util: add missing u_debug include X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a13ff954d3d8cea73bbcf728edffa867828cb78;p=mesa.git gallium/util: add missing u_debug include 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" Signed-off-by: Andreas Boll Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index 25bcfb57d8e..39bd40fa153 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -40,6 +40,7 @@ #include "pipe/p_compiler.h" +#include "util/u_debug.h" #ifdef __cplusplus