Skip to content

Commit

Permalink
Fix checkDirectory() with mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Jul 12, 2023
1 parent ed6c203 commit dd70a81
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/core/src/tools/file/vpIoTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,6 @@ bool vpIoTools::checkDirectory(const std::string &dirname)
#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) // UNIX
if (stat(_dirname.c_str(), &stbuf) != 0)
#elif defined(_WIN32) && defined(__MINGW32__)
// Remove trailing separator character if any
// AppVeyor: Windows 6.3.9600 AMD64 ; C:/MinGW/bin/g++.exe (ver 5.3.0) ;
// GNU Make 3.82.90 Built for i686-pc-mingw32
if (_dirname.at(_dirname.size() - 1) == vpIoTools::separator)
_dirname = _dirname.substr(0, _dirname.size() - 1);
if (stat(_dirname.c_str(), &stbuf) != 0)
#elif defined(_WIN32)
if (_stat(_dirname.c_str(), &stbuf) != 0)
Expand Down

0 comments on commit dd70a81

Please sign in to comment.