Skip to content

Commit

Permalink
Avoid compiler complaints if _TIME_BITS defined when building zlib.
Browse files Browse the repository at this point in the history
zlib does not use time_t, so _TIME_BITS is irrelevant. However it
may be defined anyway as part of a sledgehammer indiscriminately
applied to all builds.
  • Loading branch information
madler committed Jul 30, 2023
1 parent a88f727 commit a566e15
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gzguts.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
# ifndef _LARGEFILE_SOURCE
# define _LARGEFILE_SOURCE 1
# endif
# ifdef _FILE_OFFSET_BITS
# undef _FILE_OFFSET_BITS
# endif
# undef _FILE_OFFSET_BITS
# undef _TIME_BITS
#endif

#ifdef HAVE_HIDDEN
Expand Down

0 comments on commit a566e15

Please sign in to comment.