Module Name:    src
Committed By:   christos
Date:           Fri May  8 13:58:53 UTC 2015

Modified Files:
        src/sys/sys: cdefs_elf.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/sys/cdefs_elf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs_elf.h
diff -u src/sys/sys/cdefs_elf.h:1.48 src/sys/sys/cdefs_elf.h:1.49
--- src/sys/sys/cdefs_elf.h:1.48	Wed May  6 16:25:29 2015
+++ src/sys/sys/cdefs_elf.h	Fri May  8 09:58:53 2015
@@ -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)))

Reply via email to