aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sokol_app.h26
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)