ProjectM.hpp: Use #pragma warning on MSVC only

Fixes multiple "warning: unknown pragma ignored [-Wunknown-pragmas]"
diagnostics on GCC/Clang when used with MinGW, both when building the
library aswell as in client applications.
This commit is contained in:
Johannes Kauffmann
2022-08-18 21:50:52 +00:00
committed by Kai Blaschke
parent 02c6e2df68
commit 0d047407dc

View File

@ -27,12 +27,15 @@
#include "fatal.h"
#ifdef WIN32
#ifdef _MSC_VER
// libs required for win32
#pragma comment(lib, "psapi.lib")
#pragma comment(lib, "kernel32.lib")
#pragma warning(disable : 4244)
#pragma warning(disable : 4305)
#endif /* _MSC_VER */
#include <windows.h>
#else