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:
Yiwei Zhang
2024-01-30 14:18:01 -08:00
committed by Marge Bot
parent 569437221d
commit 53d9debcf4
9 changed files with 17 additions and 13 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
#include "u_perfetto.h"
#include "u_gpuvis.h"
#include "util/detect_os.h"
#include "util/macros.h"
#if defined(HAVE_PERFETTO)
@@ -33,7 +34,7 @@
*
* https://github.com/android/ndk/issues/1178
*/
#elif defined(ANDROID) && !defined(__cplusplus)
#elif DETECT_OS_ANDROID && !defined(__cplusplus)
#include <cutils/trace.h>