This is the mail archive of the cygwin mailing list for the Cygwin 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: htonl, htons, ntohl and ntohs types


On Fri, Apr 21, 2006 at 02:49:08PM +0200, Samuel Thibault wrote:
> Hi,
> 
> Lars Munch, le Fri 21 Apr 2006 14:27:40 +0200, a écrit :
> > > That's on purpose: on windows, ints are 16bits.
> > 
> > How can that be when sizeof(int) returns 4 with cygwin gcc on a 32bit
> > windows?
> 
> That depends on the compiler.

Yes, my PIC compiler also uses 16bit ints, but this is gcc on cygwin.

If we ever get an native 64bit cygwin version, then a long will probably
be 64bit which means an uint32_t will be 64bits if we do not fix stdint.h.

-- Lars Munch

--
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/


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