Skip to content

Commit

Permalink
Add MinGW large file support.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Jan 23, 2021
1 parent 37ebc02 commit bf19597
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pigz.c
Expand Up @@ -321,9 +321,10 @@
buffers to about the same number.
*/

// Use large file functions if available.
#define _FILE_OFFSET_BITS 64
#define _LARGE_FILES // for AIX
// Portability defines.
#define _FILE_OFFSET_BITS 64 // Use large file functions
#define _LARGE_FILES // Same thing for AIX
#define _POSIX_C_SOURCE 200809L // For MinGW

// Included headers and what is expected from each.
#include <stdio.h> // fflush(), fprintf(), fputs(), getchar(), putc(),
Expand Down

0 comments on commit bf19597

Please sign in to comment.