From dd70a81bd73e229ed17c725c2f21487ca5a4e849 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Wed, 12 Jul 2023 23:54:59 +0200 Subject: [PATCH] Fix checkDirectory() with mingw --- modules/core/src/tools/file/vpIoTools.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/core/src/tools/file/vpIoTools.cpp b/modules/core/src/tools/file/vpIoTools.cpp index 7a9062ce9c..0a064aae78 100644 --- a/modules/core/src/tools/file/vpIoTools.cpp +++ b/modules/core/src/tools/file/vpIoTools.cpp @@ -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)