Skip to content

Commit

Permalink
use _stati64 on 64 bit windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Nov 11, 2024
1 parent 2f9f464 commit 1cffe12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/importproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,13 @@ void ImportProject::setFileSizes()
for (auto &fs : fileSettings) {
int statResult;
#ifdef _WIN32
#ifdef _WIN64
struct _stati64 statBuf;
statResult = _stati64(fs.filename().c_str(), &statBuf);
#else
struct _stat statBuf;
statResult = _stat(fs.filename().c_str(), &statBuf);
#endif
#else
struct stat statBuf;
statResult = stat(fs.filename().c_str(), &statBuf);
Expand Down

0 comments on commit 1cffe12

Please sign in to comment.