How old is your version of -base?  In mine I have:

#ifndef __unsafe_unretained
#  if !__has_feature(objc_arc)
#    define __unsafe_unretained
#  endif
#endif

So, if you are not compiling in ARC mode and your compiler does not predefine 
__unsafe_unretained, it should be #defined away.

David

On 14 Dec 2011, at 08:06, Riccardo Mottola wrote:

> Hi,
> 
> compiling on NetBSD I get this error:
> 
> 
> Compiling file Functions.m ...
> In file included from Functions.m:39:0:
> ../Headers/AppKit/NSEvent.h:247:11: error: expected specifier-qualifier-list 
> before '__unsafe_unretained'
> 
> it is Gcc 4.5.3 and I don't get why it is failing. I don't have enabled GC, 
> ARC or anything else explicitely. Both Functions.m and NSEvent.h were changed 
> quite a long time ago, and I had a successful compile not later than about 10 
> days ago.
> 
> Riccardo
> 
> _______________________________________________
> Gnustep-dev mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/gnustep-dev


-- Sent from my Cray X1


_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to