Backported FMT_STRING

This commit is contained in:
gabime
2024-11-25 09:37:24 +02:00
parent c1f101af13
commit a2de13630b
6 changed files with 7 additions and 5 deletions

View File

@@ -43,11 +43,13 @@
#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)
#define SPDLOG_FMT_STRING(format_string) FMT_STRING(format_string)
#if defined(SPDLOG_WCHAR_FILENAMES)
#include "fmt/xchar.h"
#endif
#else
#define SPDLOG_FMT_RUNTIME(format_string) format_string
#define SPDLOG_FMT_STRING(format_string) format_string
#endif
#ifndef SPDLOG_FUNCTION