Hello Riccardo,

Am Wed, 17 Aug 2011 19:32:55 +0200
schrieb Riccardo Mottola <[email protected]>:

> Hi,
> 
> David is making many log statements more portable / 64 bit compliant by 
> using a macro like this:
> 
>        NSLog(@"_dispatch with unexpected status %" PRIdPTR, [self 
> streamStatus]);
> 
> 
> PRIdPTR will expand to the correct string.
> 
> gcc 2.95 on my sparc box barks
> 
> NSStream.m:198: syntax error before string constant
> 
> I think, but it is just a guess, that for some reason @"" and "" don't 
> get joined properly, while "" and "" do. Anyone has a better idea or 
> some memory about old compiler quirks or generally another 32/64 bit option?

True. IIRC, using @PRIdPTR will convince that gcc to concatenate the
strings. Have not tested this with the newest gcc versions, though.

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

Reply via email to