build: update fmt library to 12.1.0 (#449)

This commit is contained in:
bicarus-dev
2025-12-14 14:36:38 -08:00
committed by GitHub
parent b220cbf336
commit e0530fedad
71 changed files with 17690 additions and 15430 deletions
+1
View File
@@ -1,5 +1,6 @@
#include "fileutils.h"
#include <algorithm>
#include <fstream>
#include <sys/stat.h>
+4 -6
View File
@@ -42,13 +42,12 @@ struct fmt_log {
template<>
struct fmt::formatter<fmt_log> {
template<typename ParseContext>
constexpr auto parse(ParseContext &ctx) {
constexpr auto parse(format_parse_context &ctx) {
return ctx.begin();
}
template<typename FormatContext>
auto format(const fmt_log &v, FormatContext &ctx) {
auto format(const fmt_log &v, FormatContext &ctx) const {
return format_to(ctx.out(), FMT_COMPILE("{} {}:{}: "), log_get_datetime(v.ts), v.level, v.module);
}
};
@@ -60,13 +59,12 @@ struct fmt_hresult {
template<>
struct fmt::formatter<fmt_hresult> {
template<typename ParseContext>
constexpr auto parse(ParseContext &ctx) {
constexpr auto parse(format_parse_context &ctx) {
return ctx.begin();
}
template<typename FormatContext>
auto format(const fmt_hresult &v, FormatContext &ctx) {
auto format(const fmt_hresult &v, FormatContext &ctx) const {
return format_to(ctx.out(), FMT_COMPILE("0x{:08x}"), static_cast<unsigned>(v.result));
}
};
+1
View File
@@ -1,5 +1,6 @@
#pragma once
#include <algorithm>
#include <locale>
#include <string>
#include <vector>