Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2c51809 authored by Yifan Hong's avatar Yifan Hong Committed by Steven Moreland
Browse files

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
Merged-In: I340ec048094c027828f516d891250651e0c88eea
parent 2827106d
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -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 */