From becd0eba0318e06b95c437f2489cd22a6aeeb82f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 1 May 2018 17:26:21 +0300 Subject: [PATCH] Possibility to use dedicated version with SDL(it's used only by internal timer) --- engine/platform/sdl/events.c | 4 ++-- engine/platform/sdl/vid_sdl.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/platform/sdl/events.c b/engine/platform/sdl/events.c index 5d668871..a6a4440d 100644 --- a/engine/platform/sdl/events.c +++ b/engine/platform/sdl/events.c @@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ -#ifdef XASH_SDL +#if defined( XASH_SDL ) && !defined( XASH_DEDICATED ) #include #include "common.h" @@ -637,4 +637,4 @@ int SDLash_JoyInit( int numjoy ) } -#endif // XASH_SDL +#endif // defined( XASH_SDL ) && !defined( XASH_DEDICATED ) diff --git a/engine/platform/sdl/vid_sdl.c b/engine/platform/sdl/vid_sdl.c index 05f95b92..df55143a 100644 --- a/engine/platform/sdl/vid_sdl.c +++ b/engine/platform/sdl/vid_sdl.c @@ -12,6 +12,8 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ +#ifndef XASH_DEDICATED + #include "common.h" #include "client.h" #include "gl_local.h" @@ -1254,3 +1256,5 @@ void R_Free_OpenGL( void ) memset( glConfig.extension, 0, sizeof( glConfig.extension )); glw_state.initialized = false; } + +#endif // XASH_DEDICATED