spdlog: update to 1.15.1

This commit is contained in:
Rudi Heitbaum 2025-02-01 14:50:36 +00:00
parent 9399be665c
commit b4af90803c
2 changed files with 2 additions and 34 deletions

View File

@ -2,8 +2,8 @@
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) # Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="spdlog" PKG_NAME="spdlog"
PKG_VERSION="1.15.0" PKG_VERSION="1.15.1"
PKG_SHA256="9962648c9b4f1a7bbc76fd8d9172555bad1871fdb14ff4f842ef87949682caa5" PKG_SHA256="25c843860f039a1600f232c6eb9e01e6627f7d030a2ae5e232bdd3c9205d26cc"
PKG_LICENSE="MIT" PKG_LICENSE="MIT"
PKG_SITE="https://github.com/gabime/spdlog" PKG_SITE="https://github.com/gabime/spdlog"
PKG_URL="https://github.com/gabime/spdlog/archive/v${PKG_VERSION}.tar.gz" PKG_URL="https://github.com/gabime/spdlog/archive/v${PKG_VERSION}.tar.gz"

View File

@ -1,32 +0,0 @@
From e693420a38b58d29a56b3ea921e15b175a5f2843 Mon Sep 17 00:00:00 2001
From: Rui Chen <rui@chenrui.dev>
Date: Wed, 25 Dec 2024 19:00:36 -0500
Subject: [PATCH] fix: update to_string_view function for fmt 11.1
Signed-off-by: Rui Chen <rui@chenrui.dev>
---
include/spdlog/common.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/spdlog/common.h b/include/spdlog/common.h
index aca483c20..2d73f8300 100644
--- a/include/spdlog/common.h
+++ b/include/spdlog/common.h
@@ -365,10 +365,17 @@ SPDLOG_CONSTEXPR_FUNC spdlog::wstring_view_t to_string_view(spdlog::wstring_view
#endif
#ifndef SPDLOG_USE_STD_FORMAT
+#if FMT_VERSION >= 110100
+template <typename T, typename... Args>
+inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_arg<T> fmt) {
+ return fmt;
+}
+#else
template <typename T, typename... Args>
inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_string<T, Args...> fmt) {
return fmt;
}
+#endif
#elif __cpp_lib_format >= 202207L
template <typename T, typename... Args>
SPDLOG_CONSTEXPR_FUNC std::basic_string_view<T> to_string_view(