소스 검색

Fix Undefined Symbol `_ftelli64` (#2319)

Audi Nugraha 3 년 전
부모
커밋
a0895f1a3c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/external/cgltf.h

+ 5 - 1
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