apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko Čibej <br...@xbc.nu>
Subject Re: LP64/P64 model API issue #2
Date Fri, 20 May 2005 16:32:57 GMT
Greg Marr wrote:

> At 01:23 AM 5/19/2005, Branko ÄŒibej wrote:
>
>> Um. Even on those architectures, size_t can be smaller than ptrdiff_t.
>
>
> #ifdef  _WIN64
> typedef unsigned __int64    size_t;
> #else
> typedef _W64 unsigned int   size_t;
> #endif
>
> #ifdef  _WIN64
> typedef __int64             ptrdiff_t;
> #else
> typedef _W64 int            ptrdiff_t;
> #endif

So? That's just how things are done on Win64. It says nothing about 
(L)P64 architectures in general. Or any other 64-bit architecture for 
that matter, because size_t is allowed to be smaller than int.

-- Brane


Mime
View raw message