- or you _could_ just move the typedef from its current position at the beginning of the file to where it belongs (after the includes)! You also need to make it a sane typedef:
#if PHP_WIN32 typedef SSIZE_T ssize_t; #endif works here. Sebastian? ----- Original Message ----- From: "Michael Walter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 25, 2003 4:24 PM Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 > For the ptrdiff_t error, you could just #include <stddef.h>. > > Concerning ssize_t - that isn't a type defined anywhere in the C > standard libary, so you have to typedef it by yourself. Alternatively, > you could include <windows.h> and typedef SSIZE_T ssize_t; > > Steph wrote: > > btw if you replace ssize_t nbytes = 0; with int nbytes = 0; in line 442 > > of gd_jpeg.c - it builds AND works beautifully. > > > > Dunno why but > > #if PHP_WIN32 && !defined(ssize_t) > > typedef int ssize_t; > > #endif > > isn't working .. > > > > ----- Original Message ----- > > From: "Steph" <[EMAIL PROTECTED]> > > To: "Sebastian Bergmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Saturday, October 25, 2003 5:05 PM > > Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 > > > > > > > >>Same issue with gd2 here. Are we supposed to have updated headers > >>somewhere along the line? Edin? > >> > >>----- Original Message ----- > >>From: "Sebastian Bergmann" <[EMAIL PROTECTED]> > >>To: <[EMAIL PROTECTED]> > >>Sent: Saturday, October 25, 2003 3:57 PM > >>Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 > >> > >> > >> > >>>Andi Gutmans wrote: > >>> > >>>>Please let me know both if it works for you and if it fails. > >>> > >>> Compiles fine on my GENTOO/Linux laptop: > >>> > >>> - gentoo-sources 2.4.20-r7 > >>> - glibc 2.3.2-r6 > >>> - gcc (GCC) 3.3.1 20030916 (Gentoo Linux 3.3.1-r4, propolice) > >>> - autoconf 2.13, libtool 1.4.3, bison 1.875, flex 2.5.4 > >>> > >>> Compiles with 49 warnings (CLI/CGI SAPIs) on Windows 2000 with > > > > MSVC > > > >>6. > >> > >>> php4apache2.dll fails to build: > >>> > >>> php5\win32\time.h(27): error C2079: > >>> 'it_interval' uses undefined struct 'timeval' > >>> > >>> php5\win32\time.h(28): error C2079: > >>> 'it_value' uses undefined struct 'timeval' > >>> > >>> apache2\include\apr_network_io.h(250): error C2079: > >>> 'sin' uses undefined struct 'sockaddr_in' > >>> > >>> Don't know what this is about, worked until recently and I haven't > >>> changed my build environment since (at least not that I remember). > >>> > >>> php_gd2.dll fails to build: > >>> > >>> php5\ext\gd\libgd\gd_jpeg.c(442): error C2065: > >>> 'ptrdiff_t': undeclared identifier > >>> > >>> php5\ext\gd\libgd\gd_jpeg.c(442): error C2146: > >>> Syntax error: Missing ';' before identifier 'nbytes' > >>> > >>> php5\ext\gd\libgd\gd_jpeg.c(442): error C2065: > >>> 'nbytes': undeclared identifier > >>> > >>>-- > >>>Sebastian Bergmann > >>>http://sebastian-bergmann.de/ > >> > >>http://phpOpenTracker.de/ > >> > >>>Das Buch zu PHP 5: > >> > >>http://professionelle-softwareentwicklung-mit-php5.de/ > >> > >>>-- > >>>PHP Internals - PHP Runtime Development Mailing List > >>>To unsubscribe, visit: http://www.php.net/unsub.php > >> > >>-- > >>PHP Internals - PHP Runtime Development Mailing List > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php