diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-10 02:29:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-10 02:29:25 +0300 |
commit | 0eaeb9e50cb6114b0808ee140326ab015c533cee (patch) | |
tree | a8a448b59460fccec64b3ef17ed0182f1b337d64 /src/localconsts.h | |
parent | 50c489bc7a36972186cdb843c0582195f37e4549 (diff) | |
download | manaplus-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.gz manaplus-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.bz2 manaplus-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.xz manaplus-0eaeb9e50cb6114b0808ee140326ab015c533cee.zip |
Fix compilation warnings with mingw.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 4734ebd50..08b64e0d9 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -351,6 +351,14 @@ PRAGMA45(GCC diagnostic pop) #define USE_FILE_FOPEN 1 +#ifdef __MINGW32__ +#define PRAGMAMINGW(str) _Pragma(#str) +#define A_WIN_UNUSED __attribute__ ((unused)) +#else // __MINGW32__ +#define PRAGMAMINGW(str) +#define A_WIN_UNUSED +#endif // __MINGW32__ + #ifdef DYECMD #undef USE_FUZZER #endif // DYECMD |