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