From ba5ae24cd489d6ea2d1ff2e39951c02a39a97315 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 23 Jul 2008 22:17:08 -0400 Subject: [PATCH] klibc/compiler.h: add __weak macro Add a macro for weak symbols. --- com32/include/klibc/compiler.h | 3 +++ 1 file changed, 3 insertions(+) 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)))) -- 2.11.4.GIT