X-Spam-Check-By: sourceware.org Date: Fri, 21 Apr 2006 15:58:31 +0200 To: cygwin AT cygwin DOT com Subject: Re: htonl, htons, ntohl and ntohs types Message-ID: <20060421135831.GC16326@tuxedo.skovlyporten.dk> References: <20060421092508 DOT GA15855 AT tuxedo DOT skovlyporten DOT dk> <20060421100000 DOT GC12661 AT calimero DOT vinschen DOT de> <20060421121151 DOT GA16022 AT tuxedo DOT skovlyporten DOT dk> <20060421121713 DOT GB4189 AT implementation> <20060421122740 DOT GA16326 AT tuxedo DOT skovlyporten DOT dk> <20060421124908 DOT GC4189 AT implementation> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060421124908.GC4189@implementation> User-Agent: Mutt/1.5.11+cvs20060403 From: lars AT segv DOT dk (Lars Munch) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/