mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-27 07:59:03 +08:00
Fixed os_windows.cpp
This commit is contained in:
parent
885b796447
commit
9294adb335
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user