Files
spdlog/include/spdlog/fmt/fmt.h

40 lines
924 B
C
Raw Normal View History

2016-07-22 18:06:36 +03:00
//
2018-06-12 18:48:22 +03:00
// Copyright(c) 2016-2018 Gabi Melman.
2016-07-22 18:06:36 +03:00
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
//
// Include a bundled header-only copy of fmtlib or an external one.
// By default spdlog include its own copy.
2016-07-22 20:19:26 +03:00
//
2016-07-22 18:06:36 +03:00
2019-12-05 02:01:02 +02:00
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#endif // __GNUC__ || __clang__
2016-07-22 20:19:26 +03:00
#if !defined(SPDLOG_FMT_EXTERNAL)
#ifdef SPDLOG_HEADER_ONLY
2016-07-22 18:06:36 +03:00
#ifndef FMT_HEADER_ONLY
#define FMT_HEADER_ONLY
#endif
#endif
2016-07-22 20:19:26 +03:00
#ifndef FMT_USE_WINDOWS_H
2016-07-22 18:06:36 +03:00
#define FMT_USE_WINDOWS_H 0
2016-07-22 20:19:26 +03:00
#endif
2018-06-12 18:48:22 +03:00
#include "bundled/core.h"
2017-11-11 14:06:01 +01:00
#include "bundled/format.h"
#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
#include <fmt/core.h>
#include <fmt/format.h>
2016-07-22 20:19:26 +03:00
#endif
2019-12-05 02:01:02 +02:00
// pop warnings supressions
2019-12-05 02:01:02 +02:00
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop
#endif