diff --git a/src/osd/sdl/SDLMain_tmpl.m b/src/osd/sdl/SDLMain_tmpl.m index 3ddd1f0f5ee..78b5d7f4937 100644 --- a/src/osd/sdl/SDLMain_tmpl.m +++ b/src/osd/sdl/SDLMain_tmpl.m @@ -7,7 +7,7 @@ Feel free to customize this file to suit your needs */ -#import "SDL/SDL.h" +#import "sdlinc.h" #import "SDLMain_tmpl.h" #import /* for MAXPATHLEN */ #import diff --git a/src/osd/sdl/sdl.mak b/src/osd/sdl/sdl.mak index 05f776bb7ac..30e27178c7c 100644 --- a/src/osd/sdl/sdl.mak +++ b/src/osd/sdl/sdl.mak @@ -272,8 +272,13 @@ DEBUGOBJS = $(OSDOBJ)/modules/debugger/debugosx.o endif SYNC_IMPLEMENTATION = ntc + +# SDLMain_tmpl isn't necessary for SDL2 +ifneq ($(SDL_LIBVER),sdl2) SDLMAIN = $(SDLOBJ)/SDLMain_tmpl.o SDLUTILMAIN = $(SDLOBJ)/SDLMain_tmpl.o +endif + SDL_NETWORK = pcap MAINLDFLAGS = -Xlinker -all_load NO_X11 = 1