Mesa (master): util: include u_endian.h in u_math.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 6 20:08:01 UTC 2019


Module: Mesa
Branch: master
Commit: 5a7fe0ae992a4bf623578cf7bf8c3451940d57be
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a7fe0ae992a4bf623578cf7bf8c3451940d57be

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Thu Sep  5 20:51:30 2019 +0100

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 <pendingchaos02 at gmail.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 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 <stdarg.h>
 
 #include "bitscan.h"
+#include "u_endian.h" /* for PIPE_ARCH_BIG_ENDIAN */
 
 #ifdef __cplusplus
 extern "C" {




More information about the mesa-commit mailing list