[Zlib-devel] zlib 1.2.4.1 beta
Mark Adler
madler at alumni.caltech.edu
Sun Mar 28 20:37:08 EDT 2010
On Mar 28, 2010, at 4:16 PM, Vincent Torri wrote:
> _setmode for Windows CE is declared in stdlib.h :
So would the code below in minigzip.c solve the problem?
Mark
#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
# include <fcntl.h>
# include <io.h>
# ifdef UNDER_CE
# include <stdlib.h>
# endif
# define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
#else
# define SET_BINARY_MODE(file)
#endif
More information about the Zlib-devel
mailing list