Skip to content

Commit

Permalink
Use long long offsets for MinGW.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Mar 23, 2024
1 parent f02ea29 commit 90c677b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@ typedef uLong FAR uLongf;

#if !defined(_WIN32) && defined(Z_LARGE64)
# define z_off64_t off64_t
#elif defined(__MINGW32__)
# define z_off64_t long long
#elif defined(_WIN32) && !defined(__GNUC__)
# define z_off64_t __int64
#elif defined(__GO32__)
Expand Down
2 changes: 2 additions & 0 deletions zconf.h.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ typedef uLong FAR uLongf;

#if !defined(_WIN32) && defined(Z_LARGE64)
# define z_off64_t off64_t
#elif defined(__MINGW32__)
# define z_off64_t long long
#elif defined(_WIN32) && !defined(__GNUC__)
# define z_off64_t __int64
#elif defined(__GO32__)
Expand Down
2 changes: 2 additions & 0 deletions zconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@ typedef uLong FAR uLongf;

#if !defined(_WIN32) && defined(Z_LARGE64)
# define z_off64_t off64_t
#elif defined(__MINGW32__)
# define z_off64_t long long
#elif defined(_WIN32) && !defined(__GNUC__)
# define z_off64_t __int64
#elif defined(__GO32__)
Expand Down

0 comments on commit 90c677b

Please sign in to comment.