mirror of https://github.com/AxioDL/amuse.git
Fixes for macOS/Linux
This commit is contained in:
parent
603e066eed
commit
6b73240364
|
@ -338,7 +338,7 @@ static inline int Stat(const char* path, Sstat* statout) {
|
||||||
return _wstat64(wpath.get(), statout);
|
return _wstat64(wpath.get(), statout);
|
||||||
}
|
}
|
||||||
#else
|
#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;
|
typedef struct stat Sstat;
|
||||||
static inline int Stat(const char* path, Sstat* statout) { return stat(path, statout); }
|
static inline int Stat(const char* path, Sstat* statout) { return stat(path, statout); }
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cpp_lib_ranges
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
|
#endif
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
|
#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
|
||||||
|
|
Loading…
Reference in New Issue