diff options
author | Tom Cherry <tomcherry@google.com> | 2019-01-10 10:37:36 -0800 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2019-01-15 15:57:33 -0800 |
commit | 71ba16488b45068f9df2d1658fa9147231ef1012 (patch) | |
tree | 3af4e9839da15549127b444cfcc3e1af8affed2f /liblog/log_portability.h | |
parent | dea312bf1422d8df81e476f4a851dc640125ba86 (diff) | |
download | system_core-71ba16488b45068f9df2d1658fa9147231ef1012.tar.gz system_core-71ba16488b45068f9df2d1658fa9147231ef1012.tar.bz2 system_core-71ba16488b45068f9df2d1658fa9147231ef1012.zip |
liblog: convert to C++
Bug: 119867234
Test: liblog, logcat, logd unit tests
Change-Id: I2a33b6fc37f9860c0041e3573bfb59ea389f623c
Diffstat (limited to 'liblog/log_portability.h')
-rw-r--r-- | liblog/log_portability.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/liblog/log_portability.h b/liblog/log_portability.h index 88805c75f..4a1f59c1b 100644 --- a/liblog/log_portability.h +++ b/liblog/log_portability.h @@ -46,7 +46,7 @@ #if defined(_WIN32) #define LIBLOG_WEAK static /* Accept that it is totally private */ #else -#define LIBLOG_WEAK __attribute__((weak, visibility("default"))) +#define LIBLOG_WEAK extern "C" __attribute__((weak, visibility("default"))) #endif /* possible missing definitions in sys/cdefs.h */ @@ -62,11 +62,6 @@ #endif #endif -/* Unused argument. For C code only, remove symbol name for C++ */ -#ifndef __unused -#define __unused __attribute__((__unused__)) -#endif - /* possible missing definitions in unistd.h */ #ifndef TEMP_FAILURE_RETRY |