From 6e16eaebba6da3f60b97f3480199c9986bcf9203 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 May 2024 17:17:00 +0200 Subject: [PATCH] lib/fmt/SystemError: include only on Windows --- src/lib/fmt/SystemError.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/fmt/SystemError.cxx b/src/lib/fmt/SystemError.cxx index 01fc20fdb..c3bf104bc 100644 --- a/src/lib/fmt/SystemError.cxx +++ b/src/lib/fmt/SystemError.cxx @@ -4,8 +4,6 @@ #include "SystemError.hxx" #include "ToBuffer.hxx" -#include - std::system_error VFmtSystemError(std::error_code code, fmt::string_view format_str, fmt::format_args args) noexcept @@ -16,6 +14,8 @@ VFmtSystemError(std::error_code code, #ifdef _WIN32 +#include + #include // for HWND (needed by winbase.h) #include // for FormatMessageA()