From 1cffe12b1f08c48f41e049514bda7914ac092fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludvig=20Gunne=20Lindstr=C3=B6m?= Date: Mon, 11 Nov 2024 11:48:38 +0100 Subject: [PATCH] use _stati64 on 64 bit windows --- lib/importproject.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index eeebd3899826..ca26ee0b06ab 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -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);