Skip to content

Commit

Permalink
Fix Undefined Symbol _ftelli64 (#2319)
Browse files Browse the repository at this point in the history
  • Loading branch information
audinue authored Feb 3, 2022
1 parent c54d9cd commit a0895f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/external/cgltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,11 @@ static cgltf_result cgltf_default_file_read(const struct cgltf_memory_options* m
fseek(file, 0, SEEK_END);

#ifdef _WIN32
__int64 length = _ftelli64(file);
#ifdef __TINYC__
__int64 length = ftell(file);
#else
__int64 length = _ftelli64(file);
#endif
#else
long length = ftell(file);
#endif
Expand Down

0 comments on commit a0895f1

Please sign in to comment.