summaryrefslogtreecommitdiff
path: root/ext/zip/lib
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-06-07 17:59:57 +0200
committerAnatoliy Belsky <ab@php.net>2012-06-07 21:01:32 +0200
commitbde0e8c2a14944016d9dbd0653b74e9e2b75c965 (patch)
treee30e447e62042ed448c63c2314253aa28bf3bfc5 /ext/zip/lib
parent8ca457f64dadff756831bc61abf479a4159b2072 (diff)
downloadphp-git-bde0e8c2a14944016d9dbd0653b74e9e2b75c965.tar.gz
zip windows fixes
Diffstat (limited to 'ext/zip/lib')
-rw-r--r--ext/zip/lib/zipconf.h4
-rw-r--r--ext/zip/lib/zipint.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/zip/lib/zipconf.h b/ext/zip/lib/zipconf.h
index b65d91eb77..2b4340c861 100644
--- a/ext/zip/lib/zipconf.h
+++ b/ext/zip/lib/zipconf.h
@@ -13,7 +13,11 @@
#define LIBZIP_VERSION_MINOR 10
#define LIBZIP_VERSION_MICRO 0
+#ifdef PHP_WIN32
+#include <win32/php_stdint.h>
+#else
#include <inttypes.h>
+#endif
typedef int8_t zip_int8_t;
#define ZIP_INT8_MIN INT8_MIN
diff --git a/ext/zip/lib/zipint.h b/ext/zip/lib/zipint.h
index 67fae80ade..ea21dddcd4 100644
--- a/ext/zip/lib/zipint.h
+++ b/ext/zip/lib/zipint.h
@@ -46,10 +46,12 @@
#define ftello(s) ((long)ftell((s)))
#endif
+#ifndef PHP_WIN32
#ifndef HAVE_MKSTEMP
int _zip_mkstemp(char *);
#define mkstemp _zip_mkstemp
#endif
+#endif
#ifdef PHP_WIN32
#include <windows.h>