From b234f077b0cfe7397f33905fbc284afa07d892f8 Mon Sep 17 00:00:00 2001 From: crueter Date: Thu, 6 Nov 2025 17:39:24 -0500 Subject: [PATCH] remove mingw workaround Signed-off-by: crueter --- src/common/fs/symlink.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/common/fs/symlink.cpp b/src/common/fs/symlink.cpp index 3632a97c99..c1c64ba158 100644 --- a/src/common/fs/symlink.cpp +++ b/src/common/fs/symlink.cpp @@ -8,9 +8,7 @@ #include #endif -#ifndef __MINGW32__ #include -#endif namespace fs = std::filesystem; @@ -40,18 +38,7 @@ bool CreateSymlink(const fs::path &from, const fs::path &to) bool IsSymlink(const fs::path &path) { - // boost's is_symlink is broken on MinGW - // use win32 api in this case -#ifdef __MINGW32__ - DWORD attrs = GetFileAttributesW(path.wstring().c_str()); - if (INVALID_FILE_ATTRIBUTES == attrs) { - return false; - } - return attrs & FILE_ATTRIBUTE_DIRECTORY && - attrs & FILE_ATTRIBUTE_REPARSE_POINT; -#else return boost::filesystem::is_symlink(boost::filesystem::path{path}); -#endif } } // namespace Common::FS