From e271cac6953b47ec6d9addceeb4ac845d2036b4b Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 20 Feb 2021 15:22:33 +0100 Subject: sokol_app.h win32: make the /subsystem selection a bit more explicit --- sokol_app.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sokol_app.h b/sokol_app.h index 4accc49b..b787d997 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -1499,8 +1499,12 @@ inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); } #include #include #include - #if !defined(SOKOL_NO_ENTRY) && !defined(SOKOL_WIN32_FORCE_MAIN) - #pragma comment (linker, "/subsystem:windows") + #if !defined(SOKOL_NO_ENTRY) // if SOKOL_NO_ENTRY is defined, it's the applications' responsibility to use the right subsystem + #if defined(SOKOL_WIN32_FORCE_MAIN) + #pragma comment (linker, "/subsystem:console") + #else + #pragma comment (linker, "/subsystem:windows") + #endif #endif #include /* freopen() */ -- cgit v1.2.3