From 45f4690471d588436f2033dc5af008d40d57b36b Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 28 Aug 2014 12:47:58 +0000 Subject: [PATCH] Disable SDLmain.m for SDL2. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12093 d7cf8633-e32d-0410-b094-e92efae38249 --- SDLMain.m | 6 +++++- makefile.inc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SDLMain.m b/SDLMain.m index 2434f81a..6eadb9ee 100644 --- a/SDLMain.m +++ b/SDLMain.m @@ -5,7 +5,10 @@ Feel free to customize this file to suit your needs */ -#include "SDL.h" +#include + +#if SDL_MAJOR_VERSION == 1 + #include "SDLMain.h" #include /* for MAXPATHLEN */ #include @@ -379,3 +382,4 @@ int main (int argc, char **argv) return 0; } +#endif diff --git a/makefile.inc b/makefile.inc index 3dfd1c52..c7e98d22 100644 --- a/makefile.inc +++ b/makefile.inc @@ -241,7 +241,7 @@ OBJ_MACOSXCD=$(OBJ_NOCD) # Link LDFLAGS_MACOSXCL=$(LDFLAGS_UNIXCOMMON) -ldl -framework IOKit -framework Carbon $(LIB_SOUND) LDFLAGS_MACOSXSV=$(LDFLAGS_UNIXCOMMON) -ldl -LDFLAGS_MACOSXSDL=$(LDFLAGS_UNIXCOMMON) -ldl -framework IOKit $(SDLCONFIG_STATICLIBS) +LDFLAGS_MACOSXSDL=$(LDFLAGS_UNIXCOMMON) -ldl -framework IOKit $(SDLCONFIG_STATICLIBS) ../../../SDLMain.m OBJ_AGL= builddate.c sys_linux.o vid_agl.o thread_null.o $(OBJ_MENU) $(OBJ_SOUND) $(OBJ_CD) $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON) -- 2.39.2