From 1752086cfdf2b3e39ff11c0b69cfdba455ccc1a4 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 12 May 2019 00:50:43 +0300 Subject: [PATCH] Don't include fmt format.cc source if using external fmt --- src/spdlog.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/spdlog.cpp b/src/spdlog.cpp index 359c3b2f..57a70067 100644 --- a/src/spdlog.cpp +++ b/src/spdlog.cpp @@ -58,15 +58,12 @@ template void spdlog::details::fmt_helper::append_string_view(spdlog::string_vie template spdlog::string_view_t spdlog::details::fmt_helper::to_string_view(const fmt::memory_buffer &buf) SPDLOG_NOEXCEPT; -// Slightly modified version of fmt lib's format.cc source file +// Slightly modified version of fmt lib's format.cc source file. // Copyright (c) 2012 - 2016, Victor Zverovich // All rights reserved. #if !defined(SPDLOG_FMT_EXTERNAL) #include "spdlog/fmt/bundled/format-inl.h" -#else -#include "fmt/format-inl.h" -#endif FMT_BEGIN_NAMESPACE template struct internal::basic_data; @@ -106,3 +103,5 @@ template FMT_API int internal::char_traits::format_float(wchar_t *, std template FMT_API std::wstring internal::vformat(wstring_view, basic_format_args); FMT_END_NAMESPACE + +#endif \ No newline at end of file