mirror of
https://github.com/boostorg/filesystem.git
synced 2026-07-21 13:13:44 +00:00
Remove the check for Cygwin from Windows-only branch of fopen.
Cygwin is now handled by the POSIX branch of the code.
This commit is contained in:
@@ -31,8 +31,8 @@ namespace filesystem {
|
||||
|
||||
inline std::FILE* fopen(filesystem::path const& p, const char* mode)
|
||||
{
|
||||
#if defined(__CYGWIN__) || (defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) && defined(__STRICT_ANSI__))
|
||||
// Cygwin and MinGW32 in strict ANSI mode do not declare _wfopen
|
||||
#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) && defined(__STRICT_ANSI__)
|
||||
// MinGW32 in strict ANSI mode does not declare _wfopen
|
||||
return std::fopen(p.string().c_str(), mode);
|
||||
#else
|
||||
// mode should only contain ASCII characters and is likely short
|
||||
|
||||
Reference in New Issue
Block a user