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);
|
||||
}
|
||||
#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); }
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
#include <dirent.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cpp_lib_ranges
|
||||
#include <ranges>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
|
||||
|
|
Loading…
Reference in New Issue