mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
Update to compile on Mac OS (#26)
This commit is contained in:
parent
71fb865112
commit
600a20cde6
1 changed files with 3 additions and 1 deletions
|
@ -192,8 +192,10 @@ static int64_t getModTime(const std::string &file) {
|
|||
return INT64_MIN;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32)
|
||||
return (int64_t)s.st_mtime * 1000000;
|
||||
#elif defined(__APPLE__)
|
||||
return (int64_t)s.st_mtimespec.tv_sec * 1000000 + s.st_mtimespec.tv_nsec / 1000;
|
||||
#else
|
||||
return (int64_t)s.st_mtim.tv_sec * 1000000 + s.st_mtim.tv_nsec / 1000;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue