Skip to content

Commit f1d748e

Browse files
authored
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 <MasonAngelio>
1 parent 3edc803 commit f1d748e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/spdlog/details/os-inl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
#ifdef _WIN32
2525
#include <spdlog/details/windows_include.h>
26-
#include <fileapi.h> // for FlushFileBuffers
2726
#include <io.h> // for _get_osfhandle, _isatty, _fileno
2827
#include <process.h> // for _get_pid
2928

0 commit comments

Comments
 (0)