android: change include "cutils/log.h" to "log/log.h" on Android API >=26
[mesa.git] / src / intel / common / gen_debug.h
index da5b5a569d191b30cc53d21aa9e27ea179c63f1b..f6c44eeb912100090bf71b0e457e71c18c1260fa 100644 (file)
@@ -86,7 +86,11 @@ extern uint64_t INTEL_DEBUG;
 
 #ifdef HAVE_ANDROID_PLATFORM
 #define LOG_TAG "INTEL-MESA"
+#if ANDROID_API_LEVEL >= 26
+#include <log/log.h>
+#else
 #include <cutils/log.h>
+#endif /* use log/log.h start from android 8 major version */
 #ifndef ALOGW
 #define ALOGW LOGW
 #endif