Bring the SDL.h include in SDLMain.m up to speed with driver_sdl.c in jaudiolib and sdl_inc.h in the engine. Also address some Apple macro problems.

git-svn-id: https://svn.eduke32.com/eduke32@3368 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2013-01-04 17:28:13 +00:00
parent 5493583140
commit 748e217a19
3 changed files with 9 additions and 8 deletions

View file

@ -5,8 +5,14 @@
Feel free to customize this file to suit your needs
*/
#if defined(SDL_FRAMEWORK)
# include <SDL/SDL.h>
#else
# include "SDL.h"
#endif
#include "SDLMain.h"
#include <sys/param.h> /* for MAXPATHLEN */
#include <unistd.h>

View file

@ -121,7 +121,7 @@ EXESUFFIX_OVERRIDE ?=
# Mac OS X Frameworks location
# Like above, use absolute paths.
APPLE_FRAMEWORKS ?=/Library/Frameworks
# Since the OS X startup window is generating errors, give it an off switch.
# Without the resource files packaged in the .app bundle, the startupwindow produces errors, so give it an off switch.
OSX_STARTUPWINDOW ?= 1
# Engine options

View file

@ -39,18 +39,13 @@
# include "gtkbits.h"
#endif
#if defined __APPLE__ || !defined HAVE_GTK2
# undef UNREFERENCED_PARAMETER
# define UNREFERENCED_PARAMETER(x) x=x
# if !defined _WIN32 && (!defined __APPLE__ || !defined OSX_STARTUPWINDOW)
#if !defined _WIN32 && !defined HAVE_GTK2 && !defined __APPLE__
int32_t startwin_open(void) { return 0; }
int32_t startwin_close(void) { return 0; }
int32_t startwin_puts(const char *s) { UNREFERENCED_PARAMETER(s); return 0; }
int32_t startwin_idle(void *s) { UNREFERENCED_PARAMETER(s); return 0; }
int32_t startwin_settitle(const char *s) { UNREFERENCED_PARAMETER(s); return 0; }
#endif
#endif
#if SDL_MAJOR_VERSION==2
# define SDL_GRAB_OFF SDL_FALSE