[SDL] Scrap for OSX (copy and paste)

Josiah ravean_uo at hotmail.com
Wed Dec 5 14:27:49 PST 2007


E. Wing <ewmailing <at> gmail.com> writes:

> I think this is more trouble than dealing with the separate files. So
> I personally recommend you leave it as is, and structure your build
> system to have a case that says, 'when on Mac, compile scrap_OSX.m,
> otherwise compile scrap.c'.

Do you know if there is anyway to tell XCode this from inside main.c?  If it was
a .c file I would just have a #include inside a #ifdef OSX but including the .m
file gives a whole bunch of errors.

Josiah




More information about the SDL mailing list