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:[EMAIL PROTECTED]
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

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 <sys/types.h> does not define. */
-#define ssize_t int
\ No newline at end of file

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to