Hello;

Closely related to this, we are redefining _Noreturn, which is a reserved keyword in C11.

Not sure what effect that mess causes.

Pedro.


On 19/06/2015 05:16 a.m., David Chisnall wrote:
I only just caught this (having seen the fallout from NetBSD doing the same 
thing in a shipping release and the pain that it’s caused):

__weak is a reserved keyword in Objective-C, please pick another name for this. 
 This in cdefs.h makes it impossible to include any FreeBSD standard headers in 
Objective-C programs (of which we have a couple of hundred in ports) if they 
use any of the modern Objective-C language modes.

David

On 2 Jul 2014, at 09:45, Hans Petter Selasky <hsela...@freebsd.org> wrote:

Author: hselasky
Date: Wed Jul  2 08:45:26 2014
New Revision: 268137
URL: http://svnweb.freebsd.org/changeset/base/268137

Log:
  Define a "__weak" macro for declaring symbols "weak".

Modified:
  head/sys/sys/cdefs.h

Modified: head/sys/sys/cdefs.h
==============================================================================
--- head/sys/sys/cdefs.h        Wed Jul  2 05:45:40 2014        (r268136)
+++ head/sys/sys/cdefs.h        Wed Jul  2 08:45:26 2014        (r268137)
@@ -210,7 +210,9 @@
#define __packed
#define __aligned(x)
#define __section(x)
+#define        __weak
#else
+#define        __weak          __attribute__((__weak__))
#if !__GNUC_PREREQ__(2, 5) && !defined(__INTEL_COMPILER)
#define __dead2
#define __pure2



_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to