egl: inline eglSwapInterval() fallback
[mesa.git] / src / egl / main / egllog.c
index 64ff474c65c46078f9e5b7f53f4b5701b3832cae..6a91952577fd313e48eef710974b863efb5861d4 100644 (file)
 #include <strings.h>
 #include "c11/threads.h"
 #include "util/macros.h"
+#include "util/u_string.h"
 
 #include "egllog.h"
 
 #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 */