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__)
|
2019-12-05 01:12:55 +02:00
|
|
|
#pragma GCC diagnostic push
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wsign-conversion"
|
2019-12-05 13:37:31 +02:00
|
|
|
#endif // __GNUC__ || __clang__
|
|
|
|
|
|
|
|
|
|
|
2016-07-22 20:19:26 +03:00
|
|
|
#if !defined(SPDLOG_FMT_EXTERNAL)
|
2019-05-12 00:22:39 +03:00
|
|
|
#ifdef SPDLOG_HEADER_ONLY
|
2016-07-22 18:06:36 +03:00
|
|
|
#ifndef FMT_HEADER_ONLY
|
|
|
|
|
#define FMT_HEADER_ONLY
|
|
|
|
|
#endif
|
2019-05-11 01:33:48 +03:00
|
|
|
#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"
|
2019-05-11 01:33:48 +03:00
|
|
|
#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
|
2019-11-06 19:09:30 +00:00
|
|
|
#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
|
|
|
|
2019-12-05 13:37:31 +02:00
|
|
|
// pop warnings supressions
|
2019-12-05 02:01:02 +02:00
|
|
|
#if defined(__GNUC__) || defined(__clang__)
|
|
|
|
|
#pragma GCC diagnostic pop
|
2019-12-05 13:37:31 +02:00
|
|
|
#endif
|