sebastian               Sat Oct 25 20:42:42 2003 EDT

  Modified files:              
    /php-src/ext/gd/libgd       gd_jpeg.c 
  Log:
  Patch by Steph to sanitize ssize_t typedef on Windows.
  
Index: php-src/ext/gd/libgd/gd_jpeg.c
diff -u php-src/ext/gd/libgd/gd_jpeg.c:1.13 php-src/ext/gd/libgd/gd_jpeg.c:1.14
--- php-src/ext/gd/libgd/gd_jpeg.c:1.13 Tue Jun  3 19:23:21 2003
+++ php-src/ext/gd/libgd/gd_jpeg.c      Sat Oct 25 20:42:42 2003
@@ -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>
@@ -41,6 +37,10 @@
 /* 1.8.1: remove dependency on jinclude.h */
 #include "jpeglib.h"
 #include "jerror.h"
+
+#if PHP_WIN32
+typedef SSIZE_T ssize_t;
+#endif
 
 static const char *const GD_JPEG_VERSION = "1.0";
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to