Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Undo the OBJC hack for __weak, it will be done in gn...
details: https://anonhg.NetBSD.org/src/rev/92769ade99fe
branches: trunk
changeset: 338011:92769ade99fe
user: christos <christos%NetBSD.org@localhost>
date: Fri May 08 13:58:53 2015 +0000
description:
Undo the OBJC hack for __weak, it will be done in gnustep-base
diffstat:
sys/sys/cdefs_elf.h | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diffs (24 lines):
diff -r ca0e1ac1ebf9 -r 92769ade99fe sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h Fri May 08 11:47:53 2015 +0000
+++ b/sys/sys/cdefs_elf.h Fri May 08 13:58:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs_elf.h,v 1.48 2015/05/06 20:25:29 christos Exp $ */
+/* $NetBSD: cdefs_elf.h,v 1.49 2015/05/08 13:58:53 christos Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -64,14 +64,11 @@
#define __weak_extern(sym) \
__asm(".weak " _C_LABEL_STRING(#sym));
-#ifndef __OBJC__
-/* Avoid overriding Apple's garbage collection keywords (__weak, __strong) */
#if __GNUC_PREREQ__(4, 0)
#define __weak __attribute__((__weak__))
#else
#define __weak
#endif
-#endif /* __OBJC__ */
#if __GNUC_PREREQ__(4, 0)
#define __weak_reference(sym) __attribute__((__weakref__(#sym)))
Home |
Main Index |
Thread Index |
Old Index