Skip to content

Commit dc5206f

Browse files
authored
Merge pull request #1310 from cloudwu/master
sokol_app.h: avoid unknown-pragmas warning in mingw.
2 parents 4012bd5 + 6e21e81 commit dc5206f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sokol_app.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,12 @@ inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); }
22202220
#include <windows.h>
22212221
#include <windowsx.h>
22222222
#include <shellapi.h>
2223+
2224+
#if defined(__GNUC__)
2225+
#pragma GCC diagnostic push
2226+
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
2227+
#endif
2228+
22232229
#if !defined(SOKOL_NO_ENTRY) // if SOKOL_NO_ENTRY is defined, it's the application's responsibility to use the right subsystem
22242230

22252231
#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); }
22422248
#pragma comment (lib, "d3d11")
22432249
#endif
22442250

2251+
#if defined(__GNUC__)
2252+
#pragma GCC diagnostic pop
2253+
#endif
2254+
22452255
#if defined(SOKOL_D3D11)
22462256
#ifndef D3D11_NO_HELPERS
22472257
#define D3D11_NO_HELPERS

0 commit comments

Comments
 (0)