mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-07 09:15:24 +00:00
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:
committed by
Kai Blaschke
parent
02c6e2df68
commit
0d047407dc
@ -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
|
||||
|
||||
Reference in New Issue
Block a user