Igor Gnatenko 0a3293d
From 6ccae713acc457d7df6ab15e124a7d77c5093213 Mon Sep 17 00:00:00 2001
0038829
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
0038829
Date: Sun, 20 Mar 2016 13:28:07 +0100
0038829
Subject: [PATCH 4/4] bigendian assert
0038829
0038829
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
0038829
---
0038829
 src/gallium/auxiliary/util/u_math.h | 3 +++
0038829
 1 file changed, 3 insertions(+)
0038829
0038829
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
Igor Gnatenko 0a3293d
index ecb1d63..90ada14 100644
0038829
--- a/src/gallium/auxiliary/util/u_math.h
0038829
+++ b/src/gallium/auxiliary/util/u_math.h
Igor Gnatenko 0a3293d
@@ -59,6 +59,9 @@
0038829
 extern "C" {
0038829
 #endif
0038829
 
0038829
+#ifdef PIPE_ARCH_BIG_ENDIAN
0038829
+#include <assert.h>
0038829
+#endif
0038829
 
0038829
 #ifndef M_SQRT2
0038829
 #define M_SQRT2 1.41421356237309504880
0038829
-- 
0038829
2.7.4
0038829