SDL: more OS X fixes for SDL2. (nw)

This commit is contained in:
R. Belmont 2014-09-03 01:58:02 +00:00
parent eea0414478
commit 075268f0fd
2 changed files with 6 additions and 1 deletions

View File

@ -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 <sys/param.h> /* for MAXPATHLEN */
#import <unistd.h>

View File

@ -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