More cross-platform stdio fixes

This commit is contained in:
shermp
2020-11-19 11:42:33 +13:00
parent 133f072851
commit 10903f1b32

View File

@@ -255,7 +255,9 @@ int64_t mvhd_ftello64(FILE* stream)
{
#ifdef _MSC_VER
return _ftelli64(stream);
#else
#elif defined(__MINGW32__)
return ftello64(stream);
#else /* This should work with linux (with _FILE_OFFSET_BITS), and hopefully OS X and BSD */
return ftello(stream);
#endif
}
@@ -264,7 +266,9 @@ int mvhd_fseeko64(FILE* stream, int64_t offset, int origin)
{
#ifdef _MSC_VER
return _fseeki64(stream, offset, origin);
#else
#elif defined(__MINGW32__)
return fseeko64(stream, offset, origin);
#else /* This should work with linux (with _FILE_OFFSET_BITS), and hopefully OS X and BSD */
return fseeko(stream, offset, origin);
#endif
}