From: Tapani Pälli Date: Mon, 13 Aug 2012 06:03:06 +0000 (+0300) Subject: android: fix liblog API changes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29d394b9ba4d7a23524fc6fba6da6e043085744b;p=mesa.git android: fix liblog API changes android logging macros changed their name in JellyBean. Signed-off-by: Bruce E. Robertson Signed-off-by: Tapani Pälli Signed-off-by: Chad Versace --- diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index 66142cdee5f..7e57295e8fa 100644 --- a/src/egl/drivers/dri2/platform_android.c +++ b/src/egl/drivers/dri2/platform_android.c @@ -660,18 +660,29 @@ droid_open_device(void) return (fd >= 0) ? dup(fd) : -1; } +/* support versions < JellyBean */ +#ifndef ALOGW +#define ALOGW LOGW +#endif +#ifndef ALOGD +#define ALOGD LOGD +#endif +#ifndef ALOGI +#define ALOGI LOGI +#endif + static void droid_log(EGLint level, const char *msg) { switch (level) { case _EGL_DEBUG: - LOGD("%s", msg); + ALOGD("%s", msg); break; case _EGL_INFO: - LOGI("%s", msg); + ALOGI("%s", msg); break; case _EGL_WARNING: - LOGW("%s", msg); + ALOGW("%s", msg); break; case _EGL_FATAL: LOG_FATAL("%s", msg);