From 5a7fe0ae992a4bf623578cf7bf8c3451940d57be Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 5 Sep 2019 20:51:30 +0100 Subject: [PATCH] util: include u_endian.h in u_math.h 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 Reviewed-by: Eric Anholt --- src/util/u_math.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/u_math.h b/src/util/u_math.h index 11fbfb45761..7b779c79ca7 100644 --- a/src/util/u_math.h +++ b/src/util/u_math.h @@ -45,6 +45,7 @@ #include #include "bitscan.h" +#include "u_endian.h" /* for PIPE_ARCH_BIG_ENDIAN */ #ifdef __cplusplus extern "C" { -- 2.30.2