Add sys/cdefs.h to log/log_main.h.

for liblog.vendor. __ANDROID_API__ is __ANDROID_API_FUTURE__
with BOARD_VNDK_VERSION=current, so we need it defined.

Bug: 33241851
Test: BOARD_VNDK_VERSION=current m libgui.vendor
      (that uses liblog.vendor)

Change-Id: I340ec048094c027828f516d891250651e0c88eea
This commit is contained in:
Yifan Hong 2017-07-17 16:25:59 -07:00
parent bbd8b8b534
commit 79b1a3027b

View file

@ -18,10 +18,9 @@
#define _LIBS_LOG_LOG_MAIN_H
#include <android/log.h>
#include <sys/cdefs.h>
#ifdef __cplusplus
extern "C" {
#endif
__BEGIN_DECLS
/*
* Normally we strip the effects of ALOGV (VERBOSE messages),
@ -385,8 +384,6 @@ int __android_log_is_loggable_len(int prio, const char* tag, size_t len,
#pragma clang diagnostic pop
#endif
#ifdef __cplusplus
}
#endif
__END_DECLS
#endif /* _LIBS_LOG_LOG_MAIN_H */