diff options
| author | Andre Weissflog <floooh@gmail.com> | 2021-02-20 15:22:33 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2021-02-20 15:22:33 +0100 |
| commit | e271cac6953b47ec6d9addceeb4ac845d2036b4b (patch) | |
| tree | ad267d8bd4814b805da67b67901a2510281ba5f0 | |
| parent | 5ece8237cc30b032da170dba2cabad7dce42ec33 (diff) | |
sokol_app.h win32: make the /subsystem selection a bit more explicit
| -rw-r--r-- | sokol_app.h | 8 |
1 files 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 <windows.h> #include <windowsx.h> #include <shellapi.h> - #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 <stdio.h> /* freopen() */ |