Works with everything. (phew!)
Wez??
- Steph
Works with everything. (phew!)
You might wanna use long instead of int here, as sizeof(ssize_t) is
supposed to match the native pointer size.
--
Ard
Index: main/config.w32.h
RCS file: /repository/php-src/main/config.w32.h,v
retrieving revision 1.80
diff -u -r1.80 config.w32.h
--- main/config.w32.h 13 Nov 2003 10:32:04 -0000 1.80
+++ main/config.w32.h 14 Nov 2003 00:56:36 -0000
@@ -174,7 +174,7 @@
#define SIZEOF_LONG_LONG_INT 0
#define SIZEOF_LONG_LONG 0
#define SIZEOF_INTMAX_T 0
-#define ssize_t SSIZE_T
+#define ssize_t int
#ifdef _WIN64define 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.2
diff -u -r1.2 fcgi_config_win32.h
--- sapi/cgi/libfcgi/include/fcgi_config_win32.h 13 Nov 2003 10:32:05 -0000 1.2
+++ sapi/cgi/libfcgi/include/fcgi_config_win32.h 14 Nov 2003 00:56:38 -0000
@@ -106,3 +106,6 @@
/* 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
Steph wrote:
Works with everything. (phew!)
Are you sure this will work on Win64 ?
I think sizeof(ssize_t) is supposed to match the native pointer size.
--
Ard
Index: main/config.w32.h
RCS file: /repository/php-src/main/config.w32.h,v
retrieving revision 1.80
diff -u -r1.80 config.w32.h
--- main/config.w32.h 13 Nov 2003 10:32:04 -0000 1.80
+++ main/config.w32.h 14 Nov 2003 00:56:36 -0000
@@ -174,7 +174,7 @@
#define SIZEOF_LONG_LONG_INT 0
#define SIZEOF_LONG_LONG 0
#define SIZEOF_INTMAX_T 0
-#define ssize_t SSIZE_T
+#define ssize_t int
#ifdef _WIN64define SIZEOF_SIZE_T 8
define SIZEOF_PTRDIFF_T 8