util: refactor to use DETECT_OS_ANDROID
except leaving u_endian.h behind to use __ANDROID__ directly to be consistent with the rest in that file, which deserves a different refactor Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27374>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "util/detect_os.h"
|
||||
#include "util/mesa-sha1.h"
|
||||
#include "util/disk_cache.h"
|
||||
#include "util/disk_cache_os.h"
|
||||
@@ -190,7 +191,7 @@ test_disk_cache_create(void *mem_ctx, const char *cache_dir_name,
|
||||
|
||||
disk_cache_destroy(cache);
|
||||
|
||||
#ifdef ANDROID
|
||||
#if DETECT_OS_ANDROID
|
||||
/* Android doesn't try writing to disk (just calls the cache callbacks), so
|
||||
* the directory tests below don't apply.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user