diff --git a/include/amuse/Common.hpp b/include/amuse/Common.hpp index 829bd82..24fb08f 100644 --- a/include/amuse/Common.hpp +++ b/include/amuse/Common.hpp @@ -338,7 +338,7 @@ static inline int Stat(const char* path, Sstat* statout) { return _wstat64(wpath.get(), statout); } #else -static inline int Mkdir(const char* path, mode_t mode) { return CreateDirectoryA(path, mode); } +static inline int Mkdir(const char* path, mode_t mode) { return mkdir(path, mode); } typedef struct stat Sstat; static inline int Stat(const char* path, Sstat* statout) { return stat(path, statout); } diff --git a/lib/DirectoryEnumerator.cpp b/lib/DirectoryEnumerator.cpp index 99b1b7b..d8100af 100644 --- a/lib/DirectoryEnumerator.cpp +++ b/lib/DirectoryEnumerator.cpp @@ -5,7 +5,9 @@ #include #endif +#ifdef __cpp_lib_ranges #include +#endif #include #if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)