summaryrefslogtreecommitdiff
path: root/ext/gd/libgd
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2003-10-26 00:42:42 +0000
committerSebastian Bergmann <sebastian@php.net>2003-10-26 00:42:42 +0000
commitb2f860ce6da35ffc398935beb0881768dc1f34a0 (patch)
treee68e1831525ed953ed17c6f8c7af6a57ecef967b /ext/gd/libgd
parent0d95b23a51bfbfde4fe31561872070534e7a381f (diff)
downloadphp-git-b2f860ce6da35ffc398935beb0881768dc1f34a0.tar.gz
Patch by Steph to sanitize ssize_t typedef on Windows.
Diffstat (limited to 'ext/gd/libgd')
-rw-r--r--ext/gd/libgd/gd_jpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/gd/libgd/gd_jpeg.c b/ext/gd/libgd/gd_jpeg.c
index 0f0211c4b5..3182db12c8 100644
--- a/ext/gd/libgd/gd_jpeg.c
+++ b/ext/gd/libgd/gd_jpeg.c
@@ -21,10 +21,6 @@
* Christian Aberger
*/
-#if PHP_WIN32 && !defined(ssize_t)
-typedef int ssize_t;
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
@@ -42,6 +38,10 @@ typedef int ssize_t;
#include "jpeglib.h"
#include "jerror.h"
+#if PHP_WIN32
+typedef SSIZE_T ssize_t;
+#endif
+
static const char *const GD_JPEG_VERSION = "1.0";
typedef struct _jmpbuf_wrapper