From 52cde797c196ba58e40f46cb0527806c41c651f7 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 21 Sep 2012 21:11:10 +0200 Subject: [PATCH] Should fix build on OSX 10.8. --- gfx/gfx_common.h | 2 +- gfx/sdl_gfx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/gfx_common.h b/gfx/gfx_common.h index 9a21f8ade9..3291b70f15 100644 --- a/gfx/gfx_common.h +++ b/gfx/gfx_common.h @@ -26,7 +26,7 @@ bool gfx_window_title(char *buf, size_t size); void gfx_window_title_reset(void); -#ifdef HAVE_X11 +#if defined(HAVE_X11) && !defined(__APPLE__) #include void gfx_suspend_screensaver(Window wnd); #endif diff --git a/gfx/sdl_gfx.c b/gfx/sdl_gfx.c index 88c58a9959..bac137d603 100644 --- a/gfx/sdl_gfx.c +++ b/gfx/sdl_gfx.c @@ -289,7 +289,7 @@ static void *sdl_gfx_init(const video_info_t *video, const input_driver_t **inpu SDL_ShowCursor(SDL_DISABLE); -#ifdef HAVE_X11 +#if defined(HAVE_X11) && !defined(__APPLE__) RARCH_LOG("Suspending screensaver (X11).\n"); SDL_SysWMinfo wm_info; SDL_VERSION(&wm_info.version);