jkuhlmann / cgltf

:diamond_shape_with_a_dot_inside: Single-file glTF 2.0 loader and writer written in C99
MIT License
1.42k stars 135 forks source link

Library will not compile if using GCC in Windows. #220

Closed Schrottfresser closed 1 year ago

Schrottfresser commented 1 year ago

In line 1026 the library differentiates between windows os and others by the condition "#ifdef _WIN32". This happens because ftell does not exist in VC++. Although this will not compile using minwg. (https://stackoverflow.com/questions/15127522/how-to-ifdef-by-compilertype-gcc-or-vc).