summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/libgd/gd_jpeg.c4
-rw-r--r--main/config.w32.h2
-rw-r--r--sapi/cgi/libfcgi/include/fcgi_config_win32.h3
3 files changed, 1 insertions, 8 deletions
diff --git a/ext/gd/libgd/gd_jpeg.c b/ext/gd/libgd/gd_jpeg.c
index 3182db12c8..a2b8b62d90 100644
--- a/ext/gd/libgd/gd_jpeg.c
+++ b/ext/gd/libgd/gd_jpeg.c
@@ -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
diff --git a/main/config.w32.h b/main/config.w32.h
index 1ef50f12e2..48fb39d943 100644
--- a/main/config.w32.h
+++ b/main/config.w32.h
@@ -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
diff --git a/sapi/cgi/libfcgi/include/fcgi_config_win32.h b/sapi/cgi/libfcgi/include/fcgi_config_win32.h
index 81ff264d9f..a9ec224deb 100644
--- a/sapi/cgi/libfcgi/include/fcgi_config_win32.h
+++ b/sapi/cgi/libfcgi/include/fcgi_config_win32.h
@@ -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