diff options
Diffstat (limited to 'liblog/include/log/log_main.h')
-rw-r--r-- | liblog/include/log/log_main.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/liblog/include/log/log_main.h b/liblog/include/log/log_main.h index 339a06d86..21fc7cca0 100644 --- a/liblog/include/log/log_main.h +++ b/liblog/include/log/log_main.h | |||
@@ -17,6 +17,8 @@ | |||
17 | #ifndef _LIBS_LOG_LOG_MAIN_H | 17 | #ifndef _LIBS_LOG_LOG_MAIN_H |
18 | #define _LIBS_LOG_LOG_MAIN_H | 18 | #define _LIBS_LOG_LOG_MAIN_H |
19 | 19 | ||
20 | #include <stdbool.h> | ||
21 | |||
20 | #include <android/log.h> | 22 | #include <android/log.h> |
21 | #include <sys/cdefs.h> | 23 | #include <sys/cdefs.h> |
22 | 24 | ||
@@ -175,10 +177,10 @@ __BEGIN_DECLS | |||
175 | #if LOG_NDEBUG | 177 | #if LOG_NDEBUG |
176 | #define ALOGV(...) \ | 178 | #define ALOGV(...) \ |
177 | do { \ | 179 | do { \ |
178 | if (0) { \ | 180 | if (false) { \ |
179 | __ALOGV(__VA_ARGS__); \ | 181 | __ALOGV(__VA_ARGS__); \ |
180 | } \ | 182 | } \ |
181 | } while (0) | 183 | } while (false) |
182 | #else | 184 | #else |
183 | #define ALOGV(...) __ALOGV(__VA_ARGS__) | 185 | #define ALOGV(...) __ALOGV(__VA_ARGS__) |
184 | #endif | 186 | #endif |