[Zlib-devel] setmode vs. _setmode
William A. Rowe Jr.
wrowe at rowe-clan.net
Sun Mar 28 19:41:01 EDT 2010
On 3/28/2010 4:50 PM, Mark Adler wrote:
> I plan to update minigzip.c with this (and it will also go in examples/zpipe.c):
>
> #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
> # include <fcntl.h>
> # include <io.h>
> # if something
> # define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
> # else
> # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
> # endif
> #else
> # define SET_BINARY_MODE(file)
> #endif
>
> All I need is what to replace "something" with.
No need, see my post about -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE'.
Unless someone outside of the MS dev community knows of a platform enforcing this
MS twist?
More information about the Zlib-devel
mailing list