]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Drop workarounds for WinCE and Interix
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sun, 26 Apr 2015 11:27:44 +0000 (13:27 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Sun, 26 Apr 2015 11:27:44 +0000 (13:27 +0200)
zconf.h
zconf.h.cmakein
zconf.h.in
zutil.c
zutil.h

diff --git a/zconf.h b/zconf.h
index 16d90ee48d559b98475a018bad614e300f90b17f..4a4beaf14fe904f2246e5a32d73575f04552ae5b 100644 (file)
--- a/zconf.h
+++ b/zconf.h
 #if defined(_WINDOWS) && !defined(WINDOWS)
 #  define WINDOWS
 #endif
-#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
+#if defined(_WIN32) || defined(__WIN32__)
 #  ifndef WIN32
 #    define WIN32
 #  endif
index f80587c91eb4e9af9b77f44c152af50f02e82329..92d461d079e6f9015f6fdd2ddfa9a9868d9765ea 100644 (file)
 #if defined(_WINDOWS) && !defined(WINDOWS)
 #  define WINDOWS
 #endif
-#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
+#if defined(_WIN32) || defined(__WIN32__)
 #  ifndef WIN32
 #    define WIN32
 #  endif
index 16d90ee48d559b98475a018bad614e300f90b17f..4a4beaf14fe904f2246e5a32d73575f04552ae5b 100644 (file)
 #if defined(_WINDOWS) && !defined(WINDOWS)
 #  define WINDOWS
 #endif
-#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
+#if defined(_WIN32) || defined(__WIN32__)
 #  ifndef WIN32
 #    define WIN32
 #  endif
diff --git a/zutil.c b/zutil.c
index cf40cc69bbecd12357a2c6063b7005018880b17b..adb470f878559212cd19a8bd33dc8de4dc347ad1 100644 (file)
--- a/zutil.c
+++ b/zutil.c
@@ -107,14 +107,6 @@ const char * ZEXPORT zError(err)
     return ERR_MSG(err);
 }
 
-#if defined(_WIN32_WCE)
-    /* The Microsoft C Run-Time Library for Windows CE doesn't have
-     * errno.  We define it as a global variable to simplify porting.
-     * Its value is always 0 and should not be used.
-     */
-    int errno = 0;
-#endif
-
 #ifndef Z_SOLO
 
 #ifndef MY_ZCALLOC /* Any system without a special alloc function */
diff --git a/zutil.h b/zutil.h
index e6851679cf7f77dc7a7b17474f252536ac40fe38..6ec9155a07096b632f21dd0d8775d2ce13a2f64c 100644 (file)
--- a/zutil.h
+++ b/zutil.h
@@ -22,7 +22,7 @@
 #include "zlib.h"
 
 #ifndef Z_SOLO
-#  if !(defined(_WIN32_WCE) && defined(_MSC_VER))
+#  if defined(_MSC_VER))
 #    include <stddef.h>
 #  endif
 #  include <string.h>
@@ -84,16 +84,8 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
 #  endif
 #endif
 
-#if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
-#  if defined(_WIN32_WCE)
-#    define fdopen(fd,mode) NULL /* No fdopen() */
-#    ifndef _PTRDIFF_T_DEFINED
-       typedef int ptrdiff_t;
-#      define _PTRDIFF_T_DEFINED
-#    endif
-#  else
-#    define fdopen(fd,type)  _fdopen(fd,type)
-#  endif
+#if (defined(_MSC_VER) && (_MSC_VER > 600))
+#  define fdopen(fd,type)  _fdopen(fd,type)
 #endif
 
 /* provide prototypes for these when building zlib without LFS */