Skip to content

Commit

Permalink
Issue 719: use _stat() for windows build to avoid AppVeyor build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMSeitzer committed Apr 25, 2024
1 parent 0c186d2 commit 0f3e68f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pulleics/pulleics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,13 @@ void writePeaks(EIC* eic, QCStandard qcStandard, shared_ptr<SearchDataset> searc
}

int file_unique_id(string filename) {
struct stat file_info;

struct stat file_info;
#ifdef _WIN32
_stat(filename.c_str(), &file_info);
#else
lstat(filename.c_str(), &file_info);
#endif
return static_cast<int>(file_info.st_ino);
}

Expand Down

0 comments on commit 0f3e68f

Please sign in to comment.