mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-14 05:45:53 +08:00
Support files larger than 2GB in Win64
This commit is contained in:
parent
cdf1fd20a9
commit
4469f97beb
@ -87,7 +87,13 @@ size_t StdioFileReader::GetFileSize() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#if defined(_WIN64)
|
||||
const size_t file_size = static_cast<size_t>(_ftelli64(file_));
|
||||
#else
|
||||
const size_t file_size = static_cast<size_t>(ftell(file_));
|
||||
#endif
|
||||
rewind(file_);
|
||||
|
||||
return file_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user