| 1 | // |
| 2 | // Copyright(c) 2016-2018 Gabi Melman. |
| 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | // |
| 9 | // Include a bundled header-only copy of fmtlib or an external one. |
| 10 | // By default spdlog include its own copy. |
| 11 | // |
| 12 | #include <spdlog/tweakme.h> |
| 13 | |
| 14 | #if defined(SPDLOG_USE_STD_FORMAT) // SPDLOG_USE_STD_FORMAT is defined - use std::format |
| 15 | #include <format> |
| 16 | #elif !defined(SPDLOG_FMT_EXTERNAL) |
| 17 | #if !defined(SPDLOG_COMPILED_LIB) && !defined(FMT_HEADER_ONLY) |
| 18 | #define FMT_HEADER_ONLY |
| 19 | #endif |
| 20 | #ifndef FMT_USE_WINDOWS_H |
| 21 | #define FMT_USE_WINDOWS_H 0 |
| 22 | #endif |
| 23 | |
| 24 | #include <spdlog/fmt/bundled/core.h> |
| 25 | #include <spdlog/fmt/bundled/format.h> |
| 26 | |
| 27 | #else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib |
| 28 | #include <fmt/core.h> |
| 29 | #include <fmt/format.h> |
| 30 | #endif |
| 31 | |