Syntax error before NSColor [PATCH]

Well great!

Now I’m smarter and I have a patch. See attached.On Tue, May 21, 2013 at 10:44 AM, Vittorio Giovara < vittorio.giovara at> wrote:

I think there should be an easy fix for this: the line should be [NSColor
blackColor] as the dot syntax appeare only in Objective C 2.0, Leopard 10.5


On Tue, May 21, 2013 at 5:13 PM, D B <@D_B> wrote:


I like to compile SDL2 for 10.4 i386 and ppc. I’ve had little problem in
the past, but as of rev 373d9e4e8ad9, I get a weird compile error:

syntax error before NSColor

Removing the change made in that revision fixes compiling. I do not know
why it is throwing a compile error as NSColor has been around forever. I
thought it might be a weird line ending problem, but that wasn’t it either.

Just FYI

SDL mailing list
SDL at

SDL mailing list
SDL at

-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL2-NSColor_syntax_fix.diff
Type: application/octet-stream
Size: 595 bytes
Desc: not available

Now I’m smarter and I have a patch. See attached.

This is now hg changeset b1ca5be78064, thanks!