android: change include "cutils/log.h" to "log/log.h" on Android API >=26
[mesa.git] / src / egl / main / egllog.c
index 64ff474c65c46078f9e5b7f53f4b5701b3832cae..c223f49b0fed1e0e71cfb06aa56f597b84b22f42 100644 (file)
 
 #ifdef HAVE_ANDROID_PLATFORM
 #define LOG_TAG "EGL-MAIN"
+#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 */
 
 #endif /* HAVE_ANDROID_PLATFORM */