From 390428aae168bf0df8a6fb4db093e347888daac9 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 17 Mar 2024 01:36:04 +0200 Subject: [PATCH] Fixed path_exists(..) in windows --- src/details/os_windows.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/details/os_windows.cpp b/src/details/os_windows.cpp index b458d6fd..3267283f 100644 --- a/src/details/os_windows.cpp +++ b/src/details/os_windows.cpp @@ -104,6 +104,7 @@ int rename(const filename_t &filename1, const filename_t &filename2) noexcept { // Return true if path exists (file or directory) bool path_exists(const filename_t &filename) noexcept { + struct _stat buffer; #ifdef SPDLOG_WCHAR_FILENAMES return (::_wstat(filename.c_str(), &buffer) == 0); #else