diff options
Diffstat (limited to 'utils/log_util.h')
-rw-r--r-- | utils/log_util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/log_util.h b/utils/log_util.h index 7eb338a..d5884b7 100644 --- a/utils/log_util.h +++ b/utils/log_util.h @@ -30,12 +30,12 @@ #ifndef __LOG_UTIL_H__ #define __LOG_UTIL_H__ -#ifndef USE_GLIB +#if defined (USE_ANDROID_LOGGING) || defined (ANDROID) +// Android and LE targets with logcat support #include <utils/Log.h> -#endif /* USE_GLIB */ - -#ifdef USE_GLIB +#elif defined (USE_GLIB) +// LE targets with no logcat support #include <stdio.h> #include <sys/types.h> #include <unistd.h> @@ -45,7 +45,7 @@ #endif // LOG_TAG -#endif /* USE_GLIB */ +#endif /* #if defined (USE_ANDROID_LOGGING) || defined (ANDROID) */ #ifdef __cplusplus extern "C" |