Undo the OBJC hack for __weak, it will be done in gnustep-base

This commit is contained in:
christos 2015-05-08 13:58:53 +00:00
parent e94e9e7953
commit 6955535c25
1 changed files with 1 additions and 4 deletions

View File

@ -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)))