summaryrefslogtreecommitdiffhomepage
path: root/src/external
diff options
context:
space:
mode:
authorAudi Nugraha <[email protected]>2022-02-03 18:00:33 +0700
committerGitHub <[email protected]>2022-02-03 12:00:33 +0100
commita0895f1a3c5178049c0d538fc7bd1818e5721c32 (patch)
tree04fac3ce9028f97ab2b538811fdbf0dbce03a9eb /src/external
parentc54d9cd552316d51be08911ca252bbc8bcd57bf7 (diff)
downloadraylib-a0895f1a3c5178049c0d538fc7bd1818e5721c32.tar.gz
raylib-a0895f1a3c5178049c0d538fc7bd1818e5721c32.zip
Fix Undefined Symbol `_ftelli64` (#2319)
Diffstat (limited to 'src/external')
-rw-r--r--src/external/cgltf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/external/cgltf.h b/src/external/cgltf.h
index 56500380..796eb86c 100644
--- a/src/external/cgltf.h
+++ b/src/external/cgltf.h
@@ -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