lib/fmt/SystemError: include <array> only on Windows

This commit is contained in:
Max Kellermann 2024-05-10 17:17:00 +02:00 committed by Max Kellermann
parent a67f7f88e4
commit 6e16eaebba
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,6 @@
#include "SystemError.hxx"
#include "ToBuffer.hxx"
#include <array>
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 <array>
#include <windef.h> // for HWND (needed by winbase.h)
#include <winbase.h> // for FormatMessageA()