Hi all,

When I try to parse & compile the ios-headers as supplied in cocoaint/utils, I 
get the following error:

NSEnumerator.inc(18,18) Fatal: Syntax error, ";" expected but "identifier 
__UNSAFE_UNRETAINEDPTR" found

The offending code is: 
function countByEnumeratingWithState_objects_count(state: 
NSFastEnumerationStatePtr; buffer: id __unsafe_unretained; len: NSUInteger): 
NSUInteger;

Apparently the parser does not handle the __unsafe_unretained identifier 
properly. I used fpc-trunk and the ios 5.1 sdk. 

I know that there are other versions of the ios-headers available that do work, 
but what is the status of the version in fpc-trunk? Is it useable? And should 
it be used?

Joost.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to