]> granicus.if.org Git - php/commitdiff
Patch by Steph to sanitize ssize_t typedef on Windows.
authorSebastian Bergmann <sebastian@php.net>
Sun, 26 Oct 2003 00:42:42 +0000 (00:42 +0000)
committerSebastian Bergmann <sebastian@php.net>
Sun, 26 Oct 2003 00:42:42 +0000 (00:42 +0000)
ext/gd/libgd/gd_jpeg.c

index 0f0211c4b5d5658968ff1259e29d626aa6c9e296..3182db12c83db3e3baa34dc29e46fdd8c4ba081d 100644 (file)
  * 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