Skip to content

Commit aa1f62b

Browse files
committed
use _stati64 on 64 bit windows
1 parent 25497fa commit aa1f62b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/importproject.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,8 +1511,13 @@ void ImportProject::setFileSizes()
15111511
for (auto &fs : fileSettings) {
15121512
int statResult;
15131513
#ifdef _WIN32
1514+
#ifdef _WIN64
1515+
struct _stati64 statBuf;
1516+
statResult = _stati64(fs.filename().c_str(), &statBuf);
1517+
#else
15141518
struct _stat statBuf;
15151519
statResult = _stat(fs.filename().c_str(), &statBuf);
1520+
#endif
15161521
#else
15171522
struct stat statBuf;
15181523
statResult = stat(fs.filename().c_str(), &statBuf);

0 commit comments

Comments
 (0)