From f1d748e5e3edfa4b1778edea003bac94781bc7b7 Mon Sep 17 00:00:00 2001 From: Angelio Mason Date: Thu, 7 Aug 2025 20:47:11 +0000 Subject: [PATCH] Remove the fileapi.h include in os-inl.h (#3444) * Replaced fileapi.h include with windows.h, as instructed in https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-flushfilebuffers Otherwise this causes compilation error on older sdks. * Removed the fileapi.h include entirely, since windows.h is already included before --------- Co-authored-by: MasonAngelio --- include/spdlog/details/os-inl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 807ea0af..edbbd5c2 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -23,7 +23,6 @@ #ifdef _WIN32 #include - #include // for FlushFileBuffers #include // for _get_osfhandle, _isatty, _fileno #include // for _get_pid