Fix Undefined Symbol _ftelli64

This commit is contained in:
Audi Nugraha 2022-01-29 14:39:11 -08:00 committed by GitHub
parent 680cc72d43
commit cc7854121e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -948,7 +948,11 @@ static cgltf_result cgltf_default_file_read(const struct cgltf_memory_options* m
fseek(file, 0, SEEK_END);
#ifdef _WIN32
#ifdef __TINYC__
__int64 length = ftell(file);
#else
__int64 length = _ftelli64(file);
#endif
#else
long length = ftell(file);
#endif