summaryrefslogtreecommitdiff
path: root/zutil.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:27 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:27 -0700
commit7a33a861d1526894272a8a4b08527ce32316d750 (patch)
tree3611b8e0f01c20f809015f30fba0a599daf1413b /zutil.h
parenta2506218cd8c32416d0d15260834f3c23d910fc8 (diff)
downloadzlib-7a33a861d1526894272a8a4b08527ce32316d750.tar.gz
zlib 1.2.1v1.2.1
Diffstat (limited to 'zutil.h')
-rw-r--r--zutil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zutil.h b/zutil.h
index c2c98d9..87b70ac 100644
--- a/zutil.h
+++ b/zutil.h
@@ -139,6 +139,10 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
#if (defined(_MSC_VER) && (_MSC_VER > 600))
# 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