[SDL] Scrap for OSX (copy and paste)
Gabriele Greco
gabriele.greco at darts.it
Thu Dec 6 05:47:55 PST 2007
Josiah wrote:
>
> 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.
>
That's not a nice idea, objectiveC and C use different compilers, simply
add scrap_OSX.m to the sources file in the xcode project, the project is
not crossplatform anyway. Otherwise, if you use a crossplatform makefile
you can do something like this inside your makefile:
OBJS = main.c
OSNAME = $(shell uname)
ifeq ("$(OSNAME)", "Darwin")
OBJS += scrap_OSX.m
endif
--
Bye,
Gabry
More information about the SDL
mailing list