Mesa (master): util/android: fix android build errors
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Nov 13 12:10:42 UTC 2019
Module: Mesa
Branch: master
Commit: b12911c88e89c693a526db74f9399ee72dff77e7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b12911c88e89c693a526db74f9399ee72dff77e7
Author: Tapani Pälli <tapani.palli at intel.com>
Date: Tue Nov 12 13:45:54 2019 +0200
util/android: fix android build errors
Fixes: 9020f519 ("util/u_endian: Add error checks")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2078
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
---
src/util/u_endian.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/u_endian.h b/src/util/u_endian.h
index fb3eda42c5c..6bbae3c444c 100644
--- a/src/util/u_endian.h
+++ b/src/util/u_endian.h
@@ -73,7 +73,7 @@
# define UTIL_ARCH_BIG_ENDIAN 1
#endif
-#elif defined(_WIN32)
+#elif defined(_WIN32) || defined(ANDROID)
#define UTIL_ARCH_LITTLE_ENDIAN 1
#define UTIL_ARCH_BIG_ENDIAN 0
More information about the mesa-commit
mailing list