util: include u_endian.h in u_math.h
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 5 Sep 2019 19:51:30 +0000 (20:51 +0100)
committerAdam Jackson <ajax@nwnk.net>
Fri, 6 Sep 2019 19:52:50 +0000 (19:52 +0000)
u_endian.h needs to be included, otherwise PIPE_ARCH_BIG_ENDIAN might not
be defined on big-endian architectures and the endian conversion macros
will be incorrect.

I don't think anything is broken because of this, I just noticed this when
looking at the file.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/util/u_math.h

index 11fbfb4576139775dadbab2bb2ab0d902b1b8ed6..7b779c79ca7a8bd7c604ef2725ec0955786de186 100644 (file)
@@ -45,6 +45,7 @@
 #include <stdarg.h>
 
 #include "bitscan.h"
+#include "u_endian.h" /* for PIPE_ARCH_BIG_ENDIAN */
 
 #ifdef __cplusplus
 extern "C" {