klibc/compiler.h: add __weak macro for-3.72
authorH. Peter Anvin <hpa@zytor.com>
Thu, 24 Jul 2008 02:17:08 +0000 (22:17 -0400)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 24 Jul 2008 02:17:08 +0000 (22:17 -0400)
Add a macro for weak symbols.

com32/include/klibc/compiler.h

index 984071f..2b8e0f6 100644 (file)
 /* 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))))