2016-07-22 18:06:36 +03:00
|
|
|
//
|
|
|
|
|
// Copyright(c) 2016 Gabi Melman.
|
|
|
|
|
// 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
|
|
|
|
2016-07-22 20:19:26 +03:00
|
|
|
#if !defined(SPDLOG_FMT_EXTERNAL)
|
2016-07-22 18:06:36 +03:00
|
|
|
|
|
|
|
|
#ifndef FMT_HEADER_ONLY
|
|
|
|
|
#define FMT_HEADER_ONLY
|
|
|
|
|
#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
|
2017-11-11 13:44:27 +01:00
|
|
|
#include "../../fmt/format.h"
|
2017-10-09 19:59:02 -03:00
|
|
|
#if defined(SPDLOG_FMT_PRINTF)
|
2017-11-11 13:44:27 +01:00
|
|
|
#include "../../fmt/printf.h"
|
2017-10-09 19:59:02 -03:00
|
|
|
#endif
|
2016-07-22 18:06:36 +03:00
|
|
|
|
|
|
|
|
#else //external fmtlib
|
|
|
|
|
|
|
|
|
|
#include <fmt/format.h>
|
2017-10-09 19:59:02 -03:00
|
|
|
#if defined(SPDLOG_FMT_PRINTF)
|
|
|
|
|
#include <fmt/printf.h>
|
|
|
|
|
#endif
|
2016-07-22 18:06:36 +03:00
|
|
|
|
2016-07-22 20:19:26 +03:00
|
|
|
#endif
|
2016-07-22 18:06:36 +03:00
|
|
|
|