From: Rhys Perry Date: Thu, 5 Sep 2019 19:51:30 +0000 (+0100) Subject: util: include u_endian.h in u_math.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a7fe0ae992a4bf623578cf7bf8c3451940d57be;p=mesa.git 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 --- 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" {