diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 559597552..13991bcc7 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -788,12 +788,12 @@ void I_GetConsoleEvents(void){} static inline void I_StartupConsole(void) { #ifdef _DEBUG - consolevent = !M_CheckParm("-noconsole"); + consolevent = M_CheckParm("-noconsole") > 0 ? SDL_FALSE : SDL_TRUE; #else - consolevent = M_CheckParm("-console"); + consolevent = M_CheckParm("-console") > 0 ? SDL_TRUE : SDL_FALSE; #endif - framebuffer = M_CheckParm("-framebuffer"); + framebuffer = M_CheckParm("-framebuffer") > 0 ? SDL_TRUE : SDL_FALSE; if (framebuffer) consolevent = SDL_FALSE; diff --git a/src/sdl/macosx/mac_resources.h b/src/sdl/macosx/mac_resources.h index 727ac9f6b..8297d3d0f 100644 --- a/src/sdl/macosx/mac_resources.h +++ b/src/sdl/macosx/mac_resources.h @@ -1,5 +1,15 @@ #ifndef __MAC_RESOURCES_H__ #define __MAC_RESOURCES_H__ +#ifdef __cplusplus +extern "C" +{ +#endif + void OSX_GetResourcesPath(char * buffer); -#endif \ No newline at end of file + +#ifdef __cplusplus +} +#endif + +#endif