From 0d047407dc3004538bd1d9d9302728eaaeedd696 Mon Sep 17 00:00:00 2001 From: Johannes Kauffmann <19662702+JohannesKauffmann@users.noreply.github.com> Date: Thu, 18 Aug 2022 21:50:52 +0000 Subject: [PATCH] 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. --- src/libprojectM/ProjectM.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libprojectM/ProjectM.hpp b/src/libprojectM/ProjectM.hpp index 029f34dce..ec4d85945 100644 --- a/src/libprojectM/ProjectM.hpp +++ b/src/libprojectM/ProjectM.hpp @@ -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 #else