diff --git a/httplib.h b/httplib.h index 32ad9c6e..984069f1 100644 --- a/httplib.h +++ b/httplib.h @@ -3898,7 +3898,7 @@ struct FileStat { private: #if defined(_WIN32) - struct _stat st_; + struct _stat64 st_; #else struct stat st_; #endif @@ -6464,7 +6464,7 @@ inline bool is_path_within_base(const std::string &resolved_path, inline FileStat::FileStat(const std::string &path) { #if defined(_WIN32) auto wpath = u8string_to_wstring(path.c_str()); - ret_ = _wstat(wpath.c_str(), &st_); + ret_ = _wstat64(wpath.c_str(), &st_); #else ret_ = stat(path.c_str(), &st_); #endif