util/android: fix android build errors
authorTapani Pälli <tapani.palli@intel.com>
Tue, 12 Nov 2019 11:45:54 +0000 (13:45 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 13 Nov 2019 10:31:31 +0000 (12:31 +0200)
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@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/util/u_endian.h

index fb3eda42c5cdcc325dda77ebc22e4599a358de81..6bbae3c444c322b7f16fbb6eef2c586f86aecb0c 100644 (file)
@@ -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