aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
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 /com32/include
parent97c2f2b35677f999ced3d8649bfc7d441b1dc4e4 (diff)
downloadsyslinux.git-ba5ae24cd489d6ea2d1ff2e39951c02a39a97315.tar.gz
syslinux.git-ba5ae24cd489d6ea2d1ff2e39951c02a39a97315.tar.xz
syslinux.git-ba5ae24cd489d6ea2d1ff2e39951c02a39a97315.zip
klibc/compiler.h: add __weak macro
Add a macro for weak symbols.
Diffstat (limited to 'com32/include')
-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))))