Re: Re: cvs: php-src /ext/gd gd.c
| From: | Moriyoshi Koizumi | Date: | Mon, 15 Sep 2003 11:44:03 +0000 |
| Subject: | Re: Re: cvs: php-src /ext/gd gd.c | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4484@lists.php.net to get a copy of this message | ||
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
But it's not that portable yet as far as I'm concerned. Then why the heck
is it working for snaps...
Moriyoshi