Hi,
I ran into an error when building with cmake using MinGW-W64 7.2.0 on windows.
It complains about `LONG_TELL' being defined in fileio.c.
There does not seem to be a LONG_TELL defined in the #elif defined(_WIN32) && !defined(__DJGPP__) macro branch.
I fixed this by just adding #define LONG_TELL ftello64 and it seemed to work