Fixed msvc compilation

This commit is contained in:
gabime 2019-12-05 02:01:02 +02:00
parent 8107df08a8
commit 6b5ebab6ae
2 changed files with 8 additions and 5 deletions

View File

@ -10,11 +10,11 @@
// By default spdlog include its own copy.
//
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#endif
#if !defined(SPDLOG_FMT_EXTERNAL)
#ifdef SPDLOG_HEADER_ONLY
@ -31,4 +31,7 @@
#include <fmt/core.h>
#include <fmt/format.h>
#endif
#pragma GCC diagnostic pop
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop
#endif

View File

@ -6,7 +6,7 @@
// Copyright (c) 2012 - 2016, Victor Zverovich
// All rights reserved.
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wsign-conversion"
@ -15,7 +15,7 @@
#include "spdlog/fmt/bundled/format-inl.h"
#pragma GCC diagnostic pop
#endif
FMT_BEGIN_NAMESPACE