From 9294adb3356242af42a6d4963528a93fe09a3ad0 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 14 Jan 2024 12:19:01 +0200 Subject: [PATCH] Fixed os_windows.cpp --- src/details/os_windows.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/details/os_windows.cpp b/src/details/os_windows.cpp index 0f87a678..b919796a 100644 --- a/src/details/os_windows.cpp +++ b/src/details/os_windows.cpp @@ -5,6 +5,10 @@ #error "_WIN32 only source file" #endif +// clang-format off +#include "spdlog/details/windows_include.h" +// clang-format on + #include // for FlushFileBuffers #include // for _get_osfhandle, _isatty, _fileno #include // for _get_pid @@ -22,7 +26,6 @@ #include "spdlog/common.h" #include "spdlog/details/os.h" -#include "spdlog/details/windows_include.h" #ifdef __MINGW32__ #include @@ -190,7 +193,6 @@ std::string filename_to_str(const filename_t &filename) { return filename; } int pid() noexcept { return static_cast(::GetCurrentProcessId()); } - bool is_color_terminal() noexcept { return true; } // Determine if the terminal attached