Hello Moriyoshi,

Monday, September 15, 2003, 1:44:03 PM, you wrote:

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

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

Reply via email to