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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user