Skip to content

Commit

Permalink
Update to compile on Mac OS (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
adcox authored Jul 1, 2022
1 parent 71fb865 commit 600a20c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MinedMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 600a20c

Please sign in to comment.