From 7212aa41444317ce96700592b31552ca041f4f58 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Mon, 6 Jul 2020 11:31:15 -0400 Subject: [PATCH] Define FMT_USE_INTERNAL for fmt 7.0.0 fmt 7.0.0 renamed the internal namespace to detail. The former is still provided as an alias if the FMT_USE_INTERNAL macro is defined. See: https://github.com/fmtlib/fmt/issues/1538 --- include/spdlog/fmt/fmt.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h index b853fd5e..1e8320c9 100644 --- a/include/spdlog/fmt/fmt.h +++ b/include/spdlog/fmt/fmt.h @@ -5,6 +5,10 @@ #pragma once +// fmt 7.0.0 renamed the internal namespace to detail +// The former is still provided as an alias if the FMT_USE_INTERNAL macro is defined. +#define FMT_USE_INTERNAL + // // Include a bundled header-only copy of fmtlib or an external one. // By default spdlog include its own copy. @@ -22,4 +26,4 @@ #else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib #include #include -#endif \ No newline at end of file +#endif