diff options
| author | Andre Weissflog <floooh@gmail.com> | 2020-05-05 20:20:02 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2020-05-05 20:20:02 +0200 |
| commit | 45a9269444abdcb8b3e6553c326de89ecf80d477 (patch) | |
| tree | d074551f5e77420786d69b49792569f50b9e7480 | |
| parent | cdde23c4a095a5c489e58f705ce72c45eee129d4 (diff) | |
sokol_app.h: Fix Windows build when SOKOL_WIN32_FORCE_MAIN is defined.
| -rw-r--r-- | sokol_app.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h index abb111d3..27a6fb4a 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -3269,7 +3269,9 @@ _SOKOL_PRIVATE const _sapp_gl_fbconfig* _sapp_gl_choose_fbconfig(const _sapp_gl_ #include <shellapi.h> #pragma comment (lib, "Shell32.lib") +#if !defined(SOKOL_WIN32_FORCE_MAIN) #pragma comment (linker, "/subsystem:windows") +#endif #if (defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) #pragma comment (lib, "WindowsApp.lib") |