This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 64bit] ssize_t


On 02/20/2013 10:07 AM, Corinna Vinschen wrote:

> 
> Guarantee?  No.  We can only make an educated guess.  Just for testing
> I tried it on i686-pc-cygwin and i686-w64-mingw32 and both return
> 
>   #define __SIZE_TYPE__ unsigned int
> 
> If the educated guess doesn't work, a machine dependent override will
> be necessary.
> 
> And I agree with Ralf.  In the long run, GCC should really define
> __SSIZE_TYPE__ and friends...

If only gcc had given us __SSIZE_TYPE__ to begin with.  We could
generate __SIZE_TYPE__ from __SSIZE_TYPE__ (slap on an unsigned); but
once the unsigned is there, there is no way in C preprocessor to pull it
back out.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]