cygwin g++ strictness

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Oct 31 14:01:00 GMT 2008


On Oct 31 07:26, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to John Emmas on 10/31/2008 7:14 AM:
> > On Cygwin, '/usr/include/stdint.h' typedefs int32_t as long.  The same file
> > on my Linux partition typedefs it to int.  I must admit, I don't know what
> > to do now.....  :-(
> > 
> > Is there a simple solution to this?
> 
> Both implementations comply with POSIX - your code is buggy for assuming
> that int32_t can be converted without casts to either long or int (for
> that matter, it is theoretically possible that int32_t could be a
> completely distinct type from either int or long, although I don't know of
> any such platform).
> 
> But yes, it might be nice if cygwin used the same type as Linux, as we
> claim to strive for Linux source compatibility.

Why exactly?  The important thing here is that int32_t is 32 bit wide,
regardless of using int or long as base type.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list