Skip to content
Snippets Groups Projects

Osx compatibility

Merged Janis Born requested to merge osx-compatibility into master
5 files
+ 29
7
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -29,6 +29,10 @@ int64_t glow::util::fileModificationTime(std::string const& filename)
{
struct stat attr;
stat(filename.c_str(), &attr);
#ifdef __APPLE__
return attr.st_ctimespec.tv_sec * (int64_t)1000000000 + attr.st_ctimespec.tv_nsec;
#else
return attr.st_ctim.tv_sec * (int64_t)1000000000 + attr.st_ctim.tv_nsec;
#endif
}
#endif
Loading