[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: weak redefinition
From: |
Riccardo Mottola |
Subject: |
Re: weak redefinition |
Date: |
Tue, 14 Apr 2015 16:04:20 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1 |
Hi,
David Chisnall wrote:
It appears that all NetBSD headers are incompatible with Objective-C. Probably
worth filing a bug with them - this is even harder to work around than the
glibc issue of using __block as a variable name.
I reported to NetBSD and they said it is a bug in obj-c or gnustep,
because we don't have to mess around with symbols with __ as prefix
because they are system reserved.
The most polite reply I got is
"Don't blame NetBSD though, because these are system headers..."
Now it was easy before: until latest release 6.1.5 NetBSD did not define
__weak but
#define __weak_reference(sym) __attribute__((__weakref__(#sym)))
Riccardo