1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-03-07 06:35:48 +08:00

Fixed path_exists(..) in windows

This commit is contained in:
gabime 2024-03-17 01:36:04 +02:00
parent 1bde4831a0
commit 390428aae1

View File

@ -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