delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Wed, 4 Feb 2009 10:52:43 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: "Incompatible" typedefs |
Message-ID: | <20090204095243.GA16129@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <1233680809 DOT 17414 DOT 1298297091 AT webmail DOT messagingengine DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <1233680809.17414.1298297091@webmail.messagingengine.com> |
User-Agent: | Mutt/1.5.17 (2007-11-01) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 Feb 3 12:06, Charles Wilson wrote: > I ran across an oddity in the cygwin headers today. > > <machine/_types.h> has > typedef signed int __int32_t; > unsigned int __uint32_t; > > <stdint.h> has > typedef long int32_t > typedef unsigned long uint32_t > > <cygwin/types.h> has > typedef __uint32_t u_int32_t; > > What this means is that these public types don't match (exactly) > > uint32_t == unsigned long > u_int32_t == __uint32_t == unsigned int > > Also, the public/private pair doesn't match (exactly) > int32_t == long > __int32_t == signed int This has been fixed in the 1.7 headers in May 2008. 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |