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 authored and Dead2 committed Aug 24, 2023
1 parent 10f51f6 commit faf6cf7
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 @@ -9,9 +9,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

#if defined(HAVE_VISIBILITY_INTERNAL)
Expand Down

0 comments on commit faf6cf7

Please sign in to comment.