Skip to content

Commit

Permalink
Remove fdopen #defines in zutil.h.
Browse files Browse the repository at this point in the history
fdopen() is not used by zlib anymore. The #defines are vestigial.
  • Loading branch information
madler committed Jan 14, 2024
1 parent 431a9b6 commit 4bd9a71
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions zutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,8 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
# endif
#endif

#if defined(MACOS) || defined(TARGET_OS_MAC)
#if defined(MACOS)
# define OS_CODE 7
# ifndef Z_SOLO
# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
# include <unix.h> /* for fdopen */
# else
# ifndef fdopen
# define fdopen(fd,mode) NULL /* No fdopen() */
# endif
# endif
# endif
#endif

#ifdef __acorn
Expand All @@ -170,18 +161,6 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
# define OS_CODE 19
#endif

#if defined(_BEOS_) || defined(RISCOS)
# define fdopen(fd,mode) NULL /* No fdopen() */
#endif

#if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
# if defined(_WIN32_WCE)
# define fdopen(fd,mode) NULL /* No fdopen() */
# else
# define fdopen(fd,type) _fdopen(fd,type)
# endif
#endif

#if defined(__BORLANDC__) && !defined(MSDOS)
#pragma warn -8004
#pragma warn -8008
Expand Down

0 comments on commit 4bd9a71

Please sign in to comment.