X-Spam-Check-By: sourceware.org
Date: Fri, 21 Apr 2006 17:08:05 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: htonl, htons, ntohl and ntohs types
Message-ID: <20060421150805.GA23157@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20060421092508.GA15855@tuxedo.skovlyporten.dk> <20060421100000.GC12661@calimero.vinschen.de> <20060421121151.GA16022@tuxedo.skovlyporten.dk> <20060421143237.GB22885@calimero.vinschen.de> <20060421144831.GD16326@tuxedo.skovlyporten.dk> <20060421145846.GL4189@implementation>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20060421145846.GL4189@implementation>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Apr 21 16:58, Samuel Thibault wrote:
> Lars Munch, le Fri 21 Apr 2006 16:48:31 +0200, a écrit :
> > On Fri, Apr 21, 2006 at 04:32:37PM +0200, Corinna Vinschen wrote:
> > > That's a problem with the code you're working on.  If it relies on the
> > > fact that int32_t resp. uint32_t are typedef'ed as "int", then it
> > > contradicts the purpose of stdint.h, which is, not relying on the
> > > definition of underlying datatypes.
> > 
> > Thanks for the explanation and you are absolutely right, but isn't using
> > long instead of int a potential problem, since long is usually 64bit on
> > a 64bit system whereas int is usually 32 bit and both 32bit and 64bit
> > systems? 
> 
> When 64bits will be supported, there will be an ifdef here.

It's that simple :-)


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/

