Skip to content

Commit

Permalink
fix: Fix compile error on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kbinani committed Jan 10, 2024
1 parent d0efb16 commit 048f819
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/je2be/fs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ class Fs {
if (ec) {
return std::nullopt;
}
#if defined(_MSC_VER)
return std::chrono::clock_cast<std::chrono::system_clock>(tp);
#else
return std::chrono::time_point_cast<std::chrono::system_clock::duration>(tp - std::chrono::file_clock::now() + std::chrono::system_clock::now());
#endif
}

private:
Expand Down
1 change: 1 addition & 0 deletions src/xbox360/_save-bin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <filesystem>
#include <optional>
#include <string>
#include <vector>

namespace je2be::xbox360 {

Expand Down

0 comments on commit 048f819

Please sign in to comment.