summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Boll <andreas.boll.dev@gmail.com>2014-09-12 10:11:24 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2014-09-16 22:14:03 +0100
commitb92ea2a10df413685c9775a042b0b4aeaffde4dc (patch)
tree2087cae8ac655d753de623437a91fdee34352bcd /src
parentb0131d951bcea653c9a19b1226365815831300a6 (diff)
downloadmesa-b92ea2a10df413685c9775a042b0b4aeaffde4dc.tar.gz
mesa-b92ea2a10df413685c9775a042b0b4aeaffde4dc.tar.bz2
mesa-b92ea2a10df413685c9775a042b0b4aeaffde4dc.zip
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" <mesa-stable@lists.freedesktop.org> Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit 2a13ff954d3d8cea73bbcf728edffa867828cb78)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_math.h1
1 files changed, 1 insertions, 0 deletions
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