summaryrefslogtreecommitdiffstats
path: root/libc/include/sys/cdefs.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-01-30 17:18:48 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-30 17:18:49 +0000
commit94335cc8e2f32638d9e38741ddabfd19a38e0840 (patch)
tree02269c699fdbd5ee653ecebe86da298e2c68df92 /libc/include/sys/cdefs.h
parent542b94d9bf7eb3838b0582c02d7a1bf2e270af5a (diff)
parent466dbe444446da0a8729ae9ac7294f54276e29d7 (diff)
downloadbionic-94335cc8e2f32638d9e38741ddabfd19a38e0840.zip
bionic-94335cc8e2f32638d9e38741ddabfd19a38e0840.tar.gz
bionic-94335cc8e2f32638d9e38741ddabfd19a38e0840.tar.bz2
Merge "Put back inline definitions if using an old API."
Diffstat (limited to 'libc/include/sys/cdefs.h')
-rw-r--r--libc/include/sys/cdefs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h
index 21d59fa..48763d7 100644
--- a/libc/include/sys/cdefs.h
+++ b/libc/include/sys/cdefs.h
@@ -556,4 +556,10 @@
/* Used to rename functions so that the compiler emits a call to 'x' rather than the function this was applied to. */
#define __RENAME(x) __asm__(#x)
+#if __ANDROID_API__ >= 21
+#define _BIONIC_NOT_BEFORE_21(x) x
+#else
+#define _BIONIC_NOT_BEFORE_21(x)
+#endif /* __ANDROID_API__ >= 21 */
+
#endif /* !_SYS_CDEFS_H_ */