android: change include "cutils/log.h" to "log/log.h" on Android API >=26
[mesa.git] / src / broadcom / common / v3d_debug.h
index bdb9518548cc0177dbcc3d79472b524e247c86d4..75eb2718f30c7fec854e8a121ffb9495f3cd2da3 100644 (file)
@@ -57,7 +57,11 @@ extern uint32_t V3D_DEBUG;
 
 #ifdef HAVE_ANDROID_PLATFORM
 #define LOG_TAG "BROADCOM-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