From e2c4c25bf5350be56e23880ff13facc17289aae5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 May 2006 14:33:10 +0200 Subject: [PATCH] Add more MSVC 2003 compatibility ifdefs --- deps/SPIRV-Cross | 2 +- deps/glslang/glslang | 2 +- frontend/drivers/platform_win32.c | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deps/SPIRV-Cross b/deps/SPIRV-Cross index cc207e32c8..5c24d99ff2 160000 --- a/deps/SPIRV-Cross +++ b/deps/SPIRV-Cross @@ -1 +1 @@ -Subproject commit cc207e32c8668bfe5a5cc514394e7df8f020ecf6 +Subproject commit 5c24d99ff22a25ef38e9e39985f80cf57a1e7418 diff --git a/deps/glslang/glslang b/deps/glslang/glslang index 2eb0986f10..a4a4d5e22c 160000 --- a/deps/glslang/glslang +++ b/deps/glslang/glslang @@ -1 +1 @@ -Subproject commit 2eb0986f10392a4c2365869b17b59ad79226c440 +Subproject commit a4a4d5e22c375d37bd286106904ef819eafff29b diff --git a/frontend/drivers/platform_win32.c b/frontend/drivers/platform_win32.c index 2cd6121be1..2d0b934010 100644 --- a/frontend/drivers/platform_win32.c +++ b/frontend/drivers/platform_win32.c @@ -321,6 +321,7 @@ static uint64_t frontend_win32_get_mem_used(void) static void frontend_win32_attach_console(void) { #ifdef _WIN32 +#if(_WIN32_WINNT >= 0x0500) if (!AttachConsole(ATTACH_PARENT_PROCESS)) { AllocConsole(); @@ -329,11 +330,13 @@ static void frontend_win32_attach_console(void) freopen( "CON", "w", stderr ); } #endif +#endif } static void frontend_win32_detach_console(void) { #if defined(_WIN32) && !defined(_XBOX) +#if(_WIN32_WINNT >= 0x0500) if (!AttachConsole(ATTACH_PARENT_PROCESS)) { HWND wnd = GetConsoleWindow(); @@ -341,6 +344,7 @@ static void frontend_win32_detach_console(void) PostMessage(wnd, WM_CLOSE, 0, 0); } #endif +#endif } frontend_ctx_driver_t frontend_ctx_win32 = {