[Mingw-w64-public] Large file support?

2018-03-06 Thread Christer Solskogen
Hi! I've compiled a Atari ST emulator that can record video. The one I've compiled the emulator crashes when the recorded video reaches a certain size and from what I can gather it's because off_t is 32bit, even if the the compiler is x86_64. Using built-in specs. COLLECT_GCC=/opt/cross-ming

Re: [Mingw-w64-public] Large file support?

2018-03-06 Thread JonY via Mingw-w64-public
On 03/06/2018 12:48 PM, Christer Solskogen wrote: > Hi! > > I've compiled a Atari ST emulator that can record video. The one I've > compiled the emulator crashes when the recorded video reaches a certain > size and from what I can gather it's because off_t is 32bit, even if the > the compiler is x

Re: [Mingw-w64-public] Large file support?

2018-03-06 Thread Christer Solskogen
On 06.03.2018 14:13, JonY via Mingw-w64-public wrote: Or try recompiling with -D_POSIX=1 -D_FILE_OFFSET_BITS=64. Thanks, that worked! -- chs -- Check out the vibrant tech community on one of the world's most engagin

Re: [Mingw-w64-public] Large file support?

2018-03-06 Thread Ozkan Sezer
On 3/6/18, Christer Solskogen wrote: > On 06.03.2018 14:13, JonY via Mingw-w64-public wrote: >> >> Or try recompiling with -D_POSIX=1 -D_FILE_OFFSET_BITS=64. > > Thanks, that worked! Is _FILE_OFFSET_BITS is really tied to _POSIX? IIRC, _POSIX had more side effects which may or may not be wanted

Re: [Mingw-w64-public] Large file support?

2018-03-06 Thread JonY via Mingw-w64-public
On 03/06/2018 02:10 PM, Ozkan Sezer wrote: > On 3/6/18, Christer Solskogen wrote: >> On 06.03.2018 14:13, JonY via Mingw-w64-public wrote: >>> >>> Or try recompiling with -D_POSIX=1 -D_FILE_OFFSET_BITS=64. >> >> Thanks, that worked! > > Is _FILE_OFFSET_BITS is really tied to _POSIX? IIRC, _POSIX