From 2b536ddd675f34b3b1e718a8789ab80500c73182 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 6 Dec 2024 14:49:32 +0200 Subject: [PATCH] Fix windows compile --- src/details/os_windows.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/details/os_windows.cpp b/src/details/os_windows.cpp index c827a897..1a3d6851 100644 --- a/src/details/os_windows.cpp +++ b/src/details/os_windows.cpp @@ -6,7 +6,7 @@ #endif // clang-format off -#include "spdlog/details/windows_include.h" +#include "spdlog/details/windows_include.h" // must be included before fileapi.h etc. // clang-format on #include // for FlushFileBuffers @@ -151,7 +151,7 @@ void sleep_for_millis(unsigned int milliseconds) noexcept { ::Sleep(milliseconds // Try tp convert wstring filename to string. Return "???" if failed std::string filename_to_str(const filename_t &filename) { static_assert(std::is_same_v, "filename_t type must be wchar_t"); - try { + try { memory_buf_t buf; wstr_to_utf8buf(filename.wstring(), buf); return std::string(buf.data(), buf.size()); @@ -159,7 +159,7 @@ std::string filename_to_str(const filename_t &filename) { catch (...) { return "???"; } - + } int pid() noexcept { return static_cast(::GetCurrentProcessId()); }