aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include/common/sys/cdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/cross-build/include/common/sys/cdefs.h')
-rw-r--r--tools/build/cross-build/include/common/sys/cdefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/build/cross-build/include/common/sys/cdefs.h b/tools/build/cross-build/include/common/sys/cdefs.h
index 6d62333bcffe..d69e4369e01e 100644
--- a/tools/build/cross-build/include/common/sys/cdefs.h
+++ b/tools/build/cross-build/include/common/sys/cdefs.h
@@ -109,6 +109,9 @@
#define __predict_false(exp) __builtin_expect((exp), 0)
#endif
+#ifndef __weak_symbol
+#define __weak_symbol __attribute__((__weak__))
+#endif
#ifndef __weak_reference
#ifdef __ELF__
#define __weak_reference(sym, alias) \