Re: Re: cvs: php-src /ext/gd gd.c
| From: | (Marcus B�rger) | Date: | Mon, 15 Sep 2003 11:52:49 +0000 |
| Subject: | Re: Re: cvs: php-src /ext/gd gd.c | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4485@lists.php.net to get a copy of this message | ||
Hello Moriyoshi,
Monday, September 15, 2003, 1:44:03 PM, you wrote:
> Sebastian Bergmann <sebastian@php.net> wrote:
>> Not yet :)
>>
>> e:\home\php\php5\ext\gd\libgd\gd_jpeg.c(442): error C2065:
>> 'ptrdiff_t': Undeclared identifier
>>
>> e:\home\php\php5\ext\gd\libgd\gd_jpeg.c(442): error C2065:
>> 'nbytes': Undeclared identifier
> Weird. ptrdiff_t should be declared somewhere among the standard
> library headers. (It exists in stddef.h of my vc++7)
> C:\Program Files\Microsoft Visual Studio .NET\Vc7\include>grep "\(typedef\|#defi
> ne\).*ptrdiff_t" *
> stddef.h:typedef __int64 ptrdiff_t;
> stddef.h:typedef _W64 int ptrdiff_t;
> stddef.h:#define offsetof(s,m) (size_t)( (ptrdiff_t)&(((s *)0)->m) )
> xmemory: #define _PDFT ptrdiff_t
ptrdiff_t is part if the ISO-C99 standard but not all systems are 100%
compliant....
> But it's not that portable yet as far as I'm concerned. Then why the heck
> is it working for snaps...
For current HEAD i added the necessary #define for windows only because it may
be needed elsewhere and for windows it is clear how to define it.
--
Best regards,
Marcus mailto:helly@php.net