From: Nathan Moinvaziri Date: Mon, 24 Jan 2022 00:18:05 +0000 (-0800) Subject: Remove unused fdopen define for MSVC. X-Git-Tag: 2.1.0-beta1~422 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08c2a332da25f9ae7e60148ae15d30e2077f5687;p=thirdparty%2Fzlib-ng.git Remove unused fdopen define for MSVC. --- diff --git a/test/minigzip.c b/test/minigzip.c index 29729f38..e2e4bad3 100644 --- a/test/minigzip.c +++ b/test/minigzip.c @@ -12,7 +12,7 @@ * real thing. */ -#define _POSIX_SOURCE 1 /* This file needs POSIX for fdopen(). */ +#define _POSIX_SOURCE 1 #define _POSIX_C_SOURCE 200112 /* For snprintf(). */ #include "zbuild.h" diff --git a/zutil.h b/zutil.h index 324fd992..6ab70e8a 100644 --- a/zutil.h +++ b/zutil.h @@ -132,10 +132,6 @@ extern z_const char * const PREFIX(z_errmsg)[10]; /* indexed by 2-zlib_error */ # define OS_CODE 19 #endif -#if (defined(_MSC_VER) && (_MSC_VER > 600)) -# define fdopen(fd, type) _fdopen(fd, type) -#endif - /* MS Visual Studio does not allow inline in C, only C++. But it provides __inline instead, so use that. */ #if defined(_MSC_VER) && !defined(inline) && !defined(__cplusplus)