diff options
| author | Andre Weissflog <floooh@gmail.com> | 2021-02-20 15:06:56 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2021-02-20 15:06:56 +0100 |
| commit | 5ece8237cc30b032da170dba2cabad7dce42ec33 (patch) | |
| tree | 26c9907555d73c14a19a24f0c5a6da8f16099c4c | |
| parent | f75cf1bf4346776c03a341d904640f2ce828a5e5 (diff) | |
sokol_app.h win32: don't force /subsystem:windows if SOKOL_NO_ENTRY is defined
| -rw-r--r-- | sokol_app.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h index e3ab6b51..4accc49b 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -1499,7 +1499,7 @@ inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); } #include <windows.h> #include <windowsx.h> #include <shellapi.h> - #if !defined(SOKOL_WIN32_FORCE_MAIN) + #if !defined(SOKOL_NO_ENTRY) && !defined(SOKOL_WIN32_FORCE_MAIN) #pragma comment (linker, "/subsystem:windows") #endif #include <stdio.h> /* freopen() */ |