Do not include SDL_syswm.h on OSX as it breaks.

This commit is contained in:
Themaister 2012-09-01 15:31:34 +02:00
parent d4754f4c6c
commit 8663c1f009
2 changed files with 4 additions and 2 deletions

View File

@ -399,6 +399,7 @@ void gfx_ctx_check_window(bool *quit,
#endif
}
#ifndef __APPLE__
bool gfx_ctx_get_wm_info(SDL_SysWMinfo *info)
{
#ifdef XENON
@ -415,6 +416,7 @@ bool gfx_ctx_get_wm_info(SDL_SysWMinfo *info)
return SDL_GetWMInfo(info) == 1;
#endif
}
#endif
bool gfx_ctx_window_has_focus(void)
{

View File

@ -33,7 +33,7 @@
#define VID_HANDLE xdk_d3d_video_t
#endif
#ifdef HAVE_SDL
#if defined(HAVE_SDL) && !defined(__APPLE__)
#include "SDL_syswm.h"
#endif
@ -56,7 +56,7 @@ void gfx_ctx_check_window(bool *quit,
void gfx_ctx_set_resize(unsigned width, unsigned height);
#ifdef HAVE_SDL
#if defined(HAVE_SDL) && !defined(__APPLE__)
bool gfx_ctx_get_wm_info(SDL_SysWMinfo *info);
#endif