Android build broken by commit 9020f519 "util/u_endian: Add error checks"
Hi,
in src/util/u_endian.h since there is no ANDROID related preprocessor check, the build is broken with following error:
In file included from external/mesa/src/gallium/include/pipe/p_screen.h:41: In file included from external/mesa/src/gallium/include/pipe/p_compiler.h:34: In file included from external/mesa/src/gallium/include/pipe/p_config.h:129: external/mesa/src/util/u_endian.h:84:3: error: "UTIL_ARCH_LITTLE_ENDIAN and/or UTIL_ARCH_BIG_ENDIAN were unset."
error "UTIL_ARCH_LITTLE_ENDIAN and/or UTIL_ARCH_BIG_ENDIAN were unset."
^ 1 error generated.
Please fix by adding defined(ANDROID) check case as appropriate and deciding if BIG endian, not supported since API 21, can be omitted
NOTE: in API 20 and older __LITTLE_ENDIAN_BITFIELD xor __BIG_ENDIAN_BITFIELD was defined
Thanks
Mauro