This commit is contained in:
gabime
2023-10-21 13:56:34 +03:00
parent bc7e80c7ae
commit 83d5f3dbad
3 changed files with 12 additions and 6 deletions

View File

@@ -42,8 +42,14 @@
#include "fmt/fmt.h"
#if defined(SPDLOG_WCHAR_FILENAMES) && !defined(SPDLOG_USE_STD_FORMAT)
#include "fmt/xchar.h"
#if !defined(SPDLOG_USE_STD_FORMAT) && \
FMT_VERSION >= 80000 // backward compatibility with fmt versions older than 8
#define SPDLOG_FMT_RUNTIME(format_string) fmt::runtime(format_string)
#if defined(SPDLOG_WCHAR_FILENAMES)
#include "fmt/xchar.h"
#endif
#else
#define SPDLOG_FMT_RUNTIME(format_string) format_string
#endif
#ifndef SPDLOG_FUNCTION