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 gmail.com> 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
onwards.

Cheers,
Vittorio

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

Hi,

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
D


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL2-NSColor_syntax_fix.diff
Type: application/octet-stream
Size: 595 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130521/3bf42bf4/attachment.obj

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

This is now hg changeset b1ca5be78064, thanks!

–ryan.