mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-15 20:25:56 +08:00
Don't add extra slash to folders in Mingw
This commit is contained in:
parent
2b047e1ac3
commit
8089ba6643
@ -38,7 +38,7 @@ bool DirectoryExists(const std::string &path_arg) {
|
||||
struct stat path_stat;
|
||||
std::string path = path_arg;
|
||||
|
||||
#if defined(_WIN32)
|
||||
#if defined(_WIN32) && not defined(__MINGW32__)
|
||||
// Avoid a silly windows issue: stat() will fail on a drive letter missing the
|
||||
// trailing slash.
|
||||
if (path.size() > 0 && path[path.size()] != '\\' &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user