From ff7521c9bac3d52f645c68deac7084e20b81b2f5 Mon Sep 17 00:00:00 2001 From: "jenny.q.cao" Date: Fri, 27 Apr 2018 10:11:36 +0800 Subject: android: change include "cutils/log.h" to "log/log.h" on Android API >=26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is a compile warning from Android 8 (API version 26) from "include cutils/log.h" warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h"-W#warnings, Change to include "log/log.h" on Android 8 or later major version to avoid this warning Signed-off-by: jenny.q.cao Reviewed-by: Tapani Pälli --- src/mesa/drivers/dri/i915/intel_context.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h index a219c7fb1dc..a8339896f65 100644 --- a/src/mesa/drivers/dri/i915/intel_context.h +++ b/src/mesa/drivers/dri/i915/intel_context.h @@ -284,7 +284,11 @@ extern int INTEL_DEBUG; #ifdef HAVE_ANDROID_PLATFORM #define LOG_TAG "INTEL-MESA" +#if ANDROID_API_LEVEL >= 26 +#include +#else #include +#endif /* use log/log.h start from android 8 major version */ #ifndef ALOGW #define ALOGW LOGW #endif -- cgit v1.2.3