diff options
| author | Cloud Wu <cloudwu@gmail.com> | 2025-08-13 22:43:29 +0800 |
|---|---|---|
| committer | Cloud Wu <cloudwu@gmail.com> | 2025-08-13 22:43:29 +0800 |
| commit | e4e28a681f40df283f50a6f6a483129dfe82de57 (patch) | |
| tree | f78435beb6e08d14b03b5bea9aaeac88afc9326d | |
| parent | 1bb3cc8985a1e1f7628e029c561d6a7c54d4825b (diff) | |
Revert "Avoid warning in mingw"
This reverts commit 1bb3cc8985a1e1f7628e029c561d6a7c54d4825b.
| -rw-r--r-- | sokol_app.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/sokol_app.h b/sokol_app.h index ae40643c..ba72a0c7 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -2224,26 +2224,22 @@ inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); } #if defined(SOKOL_WIN32_FORCE_MAIN) && defined(SOKOL_WIN32_FORCE_WINMAIN) // If both are defined, it's the application's responsibility to use the right subsystem - #elif defined(_MSC_VER) - #if defined(SOKOL_WIN32_FORCE_MAIN) - #pragma comment (linker, "/subsystem:console") - #else - #pragma comment (linker, "/subsystem:windows") - #endif + #elif defined(SOKOL_WIN32_FORCE_MAIN) + #pragma comment (linker, "/subsystem:console") + #else + #pragma comment (linker, "/subsystem:windows") #endif #endif #include <stdio.h> /* freopen_s() */ #include <wchar.h> /* wcslen() */ - #ifdef _MSC_VER - #pragma comment (lib, "kernel32") - #pragma comment (lib, "user32") - #pragma comment (lib, "shell32") /* CommandLineToArgvW, DragQueryFileW, DragFinished */ - #pragma comment (lib, "gdi32") - #if defined(SOKOL_D3D11) - #pragma comment (lib, "dxgi") - #pragma comment (lib, "d3d11") - #endif + #pragma comment (lib, "kernel32") + #pragma comment (lib, "user32") + #pragma comment (lib, "shell32") /* CommandLineToArgvW, DragQueryFileW, DragFinished */ + #pragma comment (lib, "gdi32") + #if defined(SOKOL_D3D11) + #pragma comment (lib, "dxgi") + #pragma comment (lib, "d3d11") #endif #if defined(SOKOL_D3D11) |