From f1cca506956d421930953978d38f881e91a1da41 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 28 Oct 2014 02:25:45 +0100 Subject: [PATCH] Fix Mac OSX compilation --- src/engine/client/backend_sdl.cpp | 2 +- src/engine/client/graphics.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index eadea3145..9bcf8f704 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -687,7 +687,7 @@ void CGraphicsBackend_SDL_OpenGL::NotifyWindow() desc.dwTimeout = 0; FlashWindowEx(&desc); - #elif defined(SDL_VIDEO_DRIVER_X11) + #elif defined(SDL_VIDEO_DRIVER_X11) && !defined(CONF_PLATFORM_MACOSX) Display *dpy = info.info.x11.display; Window win; if(m_pScreenSurface->flags & SDL_FULLSCREEN) diff --git a/src/engine/client/graphics.cpp b/src/engine/client/graphics.cpp index de810b19f..80fe39284 100644 --- a/src/engine/client/graphics.cpp +++ b/src/engine/client/graphics.cpp @@ -994,7 +994,7 @@ void CGraphics_SDL::NotifyWindow() desc.dwTimeout = 0; FlashWindowEx(&desc); - #elif defined(SDL_VIDEO_DRIVER_X11) + #elif defined(SDL_VIDEO_DRIVER_X11) && !defined(CONF_PLATFORM_MACOSX) Display *dpy = info.info.x11.display; Window win; if(m_pScreenSurface->flags & SDL_FULLSCREEN)