mirror of
https://github.com/VARCem/MiniVHD.git
synced 2026-09-23 15:24:59 +00:00
More cross-platform stdio fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user