Add more MSVC 2003 compatibility ifdefs

This commit is contained in:
twinaphex 2006-05-14 14:33:10 +02:00
parent 6b779dab4f
commit e2c4c25bf5
3 changed files with 6 additions and 2 deletions

2
deps/SPIRV-Cross vendored

@ -1 +1 @@
Subproject commit cc207e32c8668bfe5a5cc514394e7df8f020ecf6
Subproject commit 5c24d99ff22a25ef38e9e39985f80cf57a1e7418

@ -1 +1 @@
Subproject commit 2eb0986f10392a4c2365869b17b59ad79226c440
Subproject commit a4a4d5e22c375d37bd286106904ef819eafff29b

View File

@ -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 = {