pcbend / GRUTinizer

Let's grutinize!
8 stars 32 forks source link

Large filesize support for 32bit systems #121

Open goatface opened 7 years ago

goatface commented 7 years ago

Files over ~2 GB could not be opened on my 32-bit system. These two modest changes appear to fix the issue.

Lunderberg commented 7 years ago

Perhaps it would be better if we instead add -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 to the compiling commands. That way, we wouldn't need to get in the habit of using fopen64. This also would avoid causing additional compatibility issues with OSX, which does not provide fopen64, as everything is 64-bit.