Fix compilation on windows

This commit is contained in:
dP
2023-04-11 01:31:15 +04:00
parent b17a7e6782
commit a32d526438
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ void ExecuteFakeCommands(Date date, DateFract date_fract) {
void load_replay_commands(const std::string &filename, std::function<void(const std::string &)> error_func) {
_fake_commands = {};
FILE *f = std::fopen(filename.c_str(), "rb");
FILE *f = fopen(filename.c_str(), "rb");
if (f == nullptr) {
error_func(fmt::format("Cannot open file `{}`: {}", filename, std::strerror(errno)));