From de3f80dba02079acd42acfbab072e9e89106f22c Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 24 Jul 2019 10:20:42 -0700 Subject: [PATCH] Silence discord warnings without visual studio. --- deps/discord-rpc/src/serialization.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/discord-rpc/src/serialization.h b/deps/discord-rpc/src/serialization.h index 9c462dc283..da03adbcf1 100644 --- a/deps/discord-rpc/src/serialization.h +++ b/deps/discord-rpc/src/serialization.h @@ -2,7 +2,7 @@ #include -#ifndef __MINGW32__ +#ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4061) // enum is not explicitly handled by a case label @@ -10,15 +10,15 @@ #pragma warning(disable : 4464) // relative include path contains #pragma warning(disable : 4668) // is not defined as a preprocessor macro #pragma warning(disable : 6313) // Incorrect operator -#endif // __MINGW32__ +#endif // _MSC_VER #include "rapidjson/document.h" #include "rapidjson/stringbuffer.h" #include "rapidjson/writer.h" -#ifndef __MINGW32__ +#ifdef _MSC_VER #pragma warning(pop) -#endif // __MINGW32__ +#endif // _MSC_VER // if only there was a standard library function for this template