summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-07-23 22:17:08 -0400
committerH. Peter Anvin <hpa@zytor.com>2008-07-23 22:17:08 -0400
commitba5ae24cd489d6ea2d1ff2e39951c02a39a97315 (patch)
tree7608b850b7350dd5ed7bd406f504c5989b77df88
parent97c2f2b35677f999ced3d8649bfc7d441b1dc4e4 (diff)
downloadsyslinux-for-3.72.tar.gz
klibc/compiler.h: add __weak macrofor-3.72
Add a macro for weak symbols.
-rw-r--r--com32/include/klibc/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/include/klibc/compiler.h b/com32/include/klibc/compiler.h
index 984071f7..2b8e0f6e 100644
--- a/com32/include/klibc/compiler.h
+++ b/com32/include/klibc/compiler.h
@@ -115,6 +115,9 @@
/* Packed structures */
#define __packed __attribute__((packed))
+/* Weak symbols */
+#define __weak __attribute__((weak))
+
/* Alignment */
#define __aligned(x) __attribute__((aligned(x)))
#define __alignas(x) __attribute__((aligned(__alignof__(x))))