Fixed os_windows.cpp

This commit is contained in:
gabime 2024-01-14 12:19:01 +02:00
parent 885b796447
commit 9294adb335

View File

@ -5,6 +5,10 @@
#error "_WIN32 only source file"
#endif
// clang-format off
#include "spdlog/details/windows_include.h"
// clang-format on
#include <fileapi.h> // for FlushFileBuffers
#include <io.h> // for _get_osfhandle, _isatty, _fileno
#include <process.h> // 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 <share.h>
@ -190,7 +193,6 @@ std::string filename_to_str(const filename_t &filename) { return filename; }
int pid() noexcept { return static_cast<int>(::GetCurrentProcessId()); }
bool is_color_terminal() noexcept { return true; }
// Determine if the terminal attached