Re: [hatari-devel] Problems with files greater 2 GiB

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Andreas Grabher schrieb:

I have a problem handling files greater than 2 GiB in Previous on some platforms. For example in Windows it seems that off_t is a signed 32-bit integer. This means that many functions in file.c will fail with large files..

I think this can be fixed by adding -D_FILE_OFFSET_BITS=64 somewhere, probably right before the check for large file support in Hatari?

You mean like it is done here?
https://github.com/hatari/hatari/blob/36d3b3ca3635a6573859d5a1ec4d7421420b435c/CMakeLists.txt#L169

I have used hard disk images larger than 2 GiB with Hatari on Windows.

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: https://www.chzsoft.de/
New GnuPG-Key-ID: 0x8708B34C827B159E



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/