Skip to content

Commit

Permalink
Fix build for MACOS/__APPLE__
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2brain committed Apr 23, 2024
1 parent 0565bf3 commit d628474
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions unarrc/external/zlib/zutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,18 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
# endif
#endif

#if defined(MACOS) || defined(TARGET_OS_MAC)
# 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
//#if defined(MACOS) || defined(TARGET_OS_MAC)
//# 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
# define OS_CODE 13
Expand Down

0 comments on commit d628474

Please sign in to comment.