Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66631 invoked by uid 1010); 12 Nov 2003 20:45:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66567 invoked from network); 12 Nov 2003 20:45:53 -0000 Received: from unknown (HELO hermes.sunderland.ac.uk) (157.228.37.117) by pb1.pair.com with SMTP; 12 Nov 2003 20:45:53 -0000 Received: from steph2 ([157.228.147.166]) by hermes.sunderland.ac.uk (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) with ESMTPA id <0HO90094EB3ZN2@hermes.sunderland.ac.uk> for internals@lists.php.net; Wed, 12 Nov 2003 20:47:59 +0000 (GMT) Date: Wed, 12 Nov 2003 20:53:30 +0000 To: internals Reply-to: steph.fox@virgin.net Message-ID: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: multipart/mixed; boundary="Boundary_(ID_n6OFRYqv4vWVpYyLjKs84A)" Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Subject: FW: [PHP-DEV] patch for ssize_t stuff in win32 build From: steph.fox@virgin.net (Steph) --Boundary_(ID_n6OFRYqv4vWVpYyLjKs84A) Content-type: text/plain; charset=Windows-1252 Content-transfer-encoding: 7BIT OK, this time I'll name it '.txt' too .. ! let me know if you have any trouble with applying it, I haven't tested this software before. -----Original Message----- From: Steph [mailto:steph.fox@virgin.net] Sent: 12 November 2003 20:42 To: internals Subject: [PHP-DEV] patch for ssize_t stuff in win32 build I stayed with the stuff we know _can't_ affect anything else this time ;) Please can someone with the requisite karma commit this? - Steph --Boundary_(ID_n6OFRYqv4vWVpYyLjKs84A) Content-type: text/plain; name=ssize_t.txt Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=ssize_t.txt Index: ext/gd/libgd/gd_jpeg.c =================================================================== RCS file: /repository/php-src/ext/gd/libgd/gd_jpeg.c,v retrieving revision 1.14 diff -u -r1.14 gd_jpeg.c --- ext/gd/libgd/gd_jpeg.c 26 Oct 2003 00:42:42 -0000 1.14 +++ ext/gd/libgd/gd_jpeg.c 12 Nov 2003 20:28:21 -0000 @@ -38,10 +38,6 @@ #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 Index: main/config.w32.h =================================================================== RCS file: /repository/php-src/main/config.w32.h,v retrieving revision 1.79 diff -u -r1.79 config.w32.h --- main/config.w32.h 4 Oct 2003 02:51:19 -0000 1.79 +++ main/config.w32.h 12 Nov 2003 20:28:27 -0000 @@ -174,7 +174,7 @@ #define SIZEOF_LONG_LONG_INT 0 #define SIZEOF_LONG_LONG 0 #define SIZEOF_INTMAX_T 0 -#define ssize_t ptrdiff_t +#define ssize_t SSIZE_T #ifdef _WIN64 # define SIZEOF_SIZE_T 8 # define SIZEOF_PTRDIFF_T 8 Index: sapi/cgi/libfcgi/include/fcgi_config_win32.h =================================================================== RCS file: /repository/php-src/sapi/cgi/libfcgi/include/fcgi_config_win32.h,v retrieving revision 1.1 diff -u -r1.1 fcgi_config_win32.h --- sapi/cgi/libfcgi/include/fcgi_config_win32.h 26 Nov 2002 05:51:16 -0000 1.1 +++ sapi/cgi/libfcgi/include/fcgi_config_win32.h 12 Nov 2003 20:28:28 -0000 @@ -106,6 +106,3 @@ /* Define as `__inline' if that's what the C compiler calls it, or to nothing if it is not supported. */ /* #undef inline */ - -/* Define to `int' if does not define. */ -#define ssize_t int \ No newline at end of file --Boundary_(ID_n6OFRYqv4vWVpYyLjKs84A)--