0004-CLog-allow-using-fmt-enums-format_as-for-explicit-en.patch 920 B

123456789101112131415161718192021222324252627282930313233
  1. From ec1fd134e31b8c667ff06e02e21a75c4c3e87dfd Mon Sep 17 00:00:00 2001
  2. From: Lukas Rusak <lorusak@gmail.com>
  3. Date: Tue, 27 Jun 2023 11:24:02 -0700
  4. Subject: [PATCH] CLog: allow using fmt::enums::format_as for explicit enum
  5. conversion when using libfmt>=10
  6. Upstream: https://github.com/xbmc/xbmc/commit/e4b1aa8450fabfb41379953c8ccec0a512421531
  7. Upstream: https://github.com/xbmc/xbmc/pull/23571
  8. Signed-off-by: Lukas Rusak <lorusak@gmail.com>
  9. Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
  10. ---
  11. xbmc/utils/log.h | 4 ++++
  12. 1 file changed, 4 insertions(+)
  13. diff --git a/xbmc/utils/log.h b/xbmc/utils/log.h
  14. index 9fc4aae368..adf46905a8 100644
  15. --- a/xbmc/utils/log.h
  16. +++ b/xbmc/utils/log.h
  17. @@ -46,6 +46,10 @@ class dist_sink;
  18. } // namespace sinks
  19. } // namespace spdlog
  20. +#if FMT_VERSION >= 100000
  21. +using fmt::enums::format_as;
  22. +#endif
  23. +
  24. class CLog : public ISettingsHandler, public ISettingCallback
  25. {
  26. public:
  27. --
  28. 2.39.2