]> git.lizzy.rs Git - zlib.git/blobdiff - zutil.h
Avoid the use of ptrdiff_t.
[zlib.git] / zutil.h
diff --git a/zutil.h b/zutil.h
index b079ea6a80f5abd23a6b2451d6eaee50ceda969b..60a0bca7936cabe16e201ed48c9e3ec4169f3f23 100644 (file)
--- a/zutil.h
+++ b/zutil.h
 #  include <stdlib.h>
 #endif
 
-#ifdef Z_SOLO
-   typedef long ptrdiff_t;  /* guess -- will be caught if guess is wrong */
-#endif
-
 #ifndef local
 #  define local static
 #endif
@@ -170,10 +166,6 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
 #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