diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-08-13 17:26:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-13 17:26:35 +0200 |
| commit | dc5206fa671f2ef0afb5b01d9073eebeb41e7eb7 (patch) | |
| tree | a2ecc16ec5b126334e86dbc7b9adbc244a4b92ba | |
| parent | 4012bd599827c9721502a90eaa661249b156d09e (diff) | |
| parent | 6e21e81946463fe7e628f0c4342710d1219bda21 (diff) | |
Merge pull request #1310 from cloudwu/master
sokol_app.h: avoid unknown-pragmas warning in mingw.
| -rw-r--r-- | sokol_app.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h index ba72a0c7..a06dc863 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -2220,6 +2220,12 @@ inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); } #include <windows.h> #include <windowsx.h> #include <shellapi.h> + + #if defined(__GNUC__) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wunknown-pragmas" + #endif + #if !defined(SOKOL_NO_ENTRY) // if SOKOL_NO_ENTRY is defined, it's the application's responsibility to use the right subsystem #if defined(SOKOL_WIN32_FORCE_MAIN) && defined(SOKOL_WIN32_FORCE_WINMAIN) @@ -2242,6 +2248,10 @@ inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); } #pragma comment (lib, "d3d11") #endif + #if defined(__GNUC__) + #pragma GCC diagnostic pop + #endif + #if defined(SOKOL_D3D11) #ifndef D3D11_NO_HELPERS #define D3D11_NO_HELPERS |