]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove unused fdopen define for MSVC.
authorNathan Moinvaziri <nathan@nathanm.com>
Mon, 24 Jan 2022 00:18:05 +0000 (16:18 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 25 Jan 2022 11:11:18 +0000 (12:11 +0100)
test/minigzip.c
zutil.h

index 29729f38942a03bee23134d9ee727705d4de6dfa..e2e4bad3b3efda2972b3f20a27cd8ac9d7e2ee36 100644 (file)
@@ -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 324fd992ee9333dca5c3c5315f095c513f61df1e..6ab70e8a29506ef510c1c74d8b5b0ed8065a8686 100644 (file)
--- 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)