summaryrefslogtreecommitdiffstats
path: root/liblog/log_read.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-10-02 11:12:28 -0700
committerMark Salyzyn <salyzyn@google.com>2015-02-09 22:12:59 +0000
commit956870518ee89b5302b8409ac78f287bf091d9ed (patch)
treea6b832d88bf2871e6a7fe59be7108da1561ab08a /liblog/log_read.c
parent3bc8ae63ce3bbcc0ab61def99a4e9b4822ba3f51 (diff)
downloadsystem_core-956870518ee89b5302b8409ac78f287bf091d9ed.zip
system_core-956870518ee89b5302b8409ac78f287bf091d9ed.tar.gz
system_core-956870518ee89b5302b8409ac78f287bf091d9ed.tar.bz2
liblog: add __android_log_is_loggable()
- Add new liblog API __android_log_is_loggable(prio, tag, def) - future plan to integrate this into the runtime checks and into the logd daemon for filtration. Inert for now. Bug: 17760225 Change-Id: I16395b4d42acc08f0209f55a1cbf87b0b2112898
Diffstat (limited to 'liblog/log_read.c')
-rw-r--r--liblog/log_read.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/liblog/log_read.c b/liblog/log_read.c
index 2f21a5d..dbed886 100644
--- a/liblog/log_read.c
+++ b/liblog/log_read.c
@@ -34,7 +34,11 @@
/* branchless on many architectures. */
#define min(x,y) ((y) ^ (((x) ^ (y)) & -((x) < (y))))
+#if (defined(USE_MINGW) || defined(HAVE_WINSOCK))
+#define WEAK static
+#else
#define WEAK __attribute__((weak))
+#endif
#ifndef __unused
#define __unused __attribute__((unused))
#endif