Wrap #pragma warning with #ifdef _MSC_VER .. #endif

This commit is contained in:
MerryMage 2016-12-15 21:31:58 +00:00
parent 0e8b626d87
commit 276873bf70
6 changed files with 19 additions and 1 deletions

View file

@ -4,7 +4,9 @@
#define CITRA_IGNORE_EXIT(x)
#ifdef _MSC_VER
#pragma warning(disable : 4244)
#endif
#include <algorithm>
#include <cstdio>

View file

@ -2,7 +2,9 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#ifdef _MSC_VER
#pragma warning(disable : 4244)
#endif
#include <algorithm>
#include "common/assert.h"

View file

@ -20,7 +20,9 @@
/* Note: this file handles interface with arm core and vfp registers */
#ifdef _MSC_VER
#pragma warning(disable : 4100)
#endif
#include "common/assert.h"
//#include "common/common_funcs.h"

View file

@ -51,7 +51,9 @@
* ===========================================================================
*/
#ifdef _MSC_VER
#pragma warning(disable : 4100 4244 4245)
#endif
#include <algorithm>
//#include "common/logging/log.h"

View file

@ -51,7 +51,9 @@
* ===========================================================================
*/
#ifdef _MSC_VER
#pragma warning(disable : 4100 4244 4245)
#endif
#include <algorithm>
#include <cinttypes>