From ab9f2ea8310cf990aa8d6f52085aae95c9ea5545 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Wed, 18 May 2016 21:11:30 -0400 Subject: [PATCH] MSVC: fixup Debug build linked --- src/hardware/r_opengl/r_opengl.h | 2 +- src/hardware/s_openal/s_openal-vc10.vcxproj | 3 ++- src/sdl/Srb2SDL-vc10.vcxproj | 2 ++ src/win32/Srb2win-vc10.vcxproj | 12 ++++++++---- src/win32/win_main.h | 2 +- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.h b/src/hardware/r_opengl/r_opengl.h index 7ffefbb58..d52104370 100644 --- a/src/hardware/r_opengl/r_opengl.h +++ b/src/hardware/r_opengl/r_opengl.h @@ -86,7 +86,7 @@ boolean SetupGLfunc(void); boolean SetupGLFunc13(void); void Flush(void); INT32 isExtAvailable(const char *extension, const GLubyte *start); -boolean SetupPixelFormat(INT32 WantColorBits, INT32 WantStencilBits, INT32 WantDepthBits); +int SetupPixelFormat(INT32 WantColorBits, INT32 WantStencilBits, INT32 WantDepthBits); void SetModelView(GLint w, GLint h); void SetStates(void); FUNCMATH float byteasfloat(UINT8 fbyte); diff --git a/src/hardware/s_openal/s_openal-vc10.vcxproj b/src/hardware/s_openal/s_openal-vc10.vcxproj index 051de1bd6..1b7d34c4b 100644 --- a/src/hardware/s_openal/s_openal-vc10.vcxproj +++ b/src/hardware/s_openal/s_openal-vc10.vcxproj @@ -186,7 +186,7 @@ - /MP %(AdditionalOptions) + /MP /SAFESEH:OFF %(AdditionalOptions) Disabled WIN32;_DEBUG;_WINDOWS;__WIN32__;__MSC__;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true @@ -244,6 +244,7 @@ true ProgramDatabase CompileAsC + /MP /SAFESEH:OFF %(AdditionalOptions) _DEBUG;%(PreprocessorDefinitions) diff --git a/src/sdl/Srb2SDL-vc10.vcxproj b/src/sdl/Srb2SDL-vc10.vcxproj index 07c10f4cf..58dba7f28 100644 --- a/src/sdl/Srb2SDL-vc10.vcxproj +++ b/src/sdl/Srb2SDL-vc10.vcxproj @@ -133,6 +133,7 @@ MachineX86 + /SAFESEH:NO %(AdditionalOptions) true @@ -182,6 +183,7 @@ MachineX64 + /SAFESEH:NO %(AdditionalOptions) true diff --git a/src/win32/Srb2win-vc10.vcxproj b/src/win32/Srb2win-vc10.vcxproj index a7c938ae9..6d05735e5 100644 --- a/src/win32/Srb2win-vc10.vcxproj +++ b/src/win32/Srb2win-vc10.vcxproj @@ -117,11 +117,12 @@ $(IntDir) $(IntDir)Srb2win.pdb true - Level4 + Level2 true EditAndContinue CompileAsC false + true _DEBUG;%(PreprocessorDefinitions) @@ -173,11 +174,12 @@ $(IntDir) $(IntDir)Srb2win.pdb true - Level4 + Level2 true ProgramDatabase CompileAsC false + true _DEBUG;%(PreprocessorDefinitions) @@ -228,11 +230,12 @@ $(IntDir) $(IntDir)Srb2win.pdb true - Level3 + Level2 true ProgramDatabase CompileAsC true + true NDEBUG;%(PreprocessorDefinitions) @@ -283,11 +286,12 @@ $(IntDir) $(IntDir)Srb2win.pdb true - Level3 + Level2 true ProgramDatabase CompileAsC true + true NDEBUG;%(PreprocessorDefinitions) diff --git a/src/win32/win_main.h b/src/win32/win_main.h index 2c464f2c6..05852f834 100644 --- a/src/win32/win_main.h +++ b/src/win32/win_main.h @@ -23,7 +23,7 @@ extern HWND hWndMain; -extern int appActive; +extern boolean appActive; VOID I_GetSysMouseEvents(INT mouse_state); extern UINT MSHWheelMessage;