X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=wpSKMEJ3XOLYBt6/2ubcxQG392qJxzg1OSoE3/0iNBYzNM3XTpBP6
	EpjH9AbPsidMEKjxbOMNMUuGzVEhKrZprGLjO9LP05TXov5qSBl4n70t1O4ITqf7
	fcfcWYmKsK9AGtN1SYcLRTEbGc4zd+WzYGADK/ePqbd8wi+cNwCvoc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=0dlRiB5zm7Mx7Gi0cgorwQQo0ZQ=; b=oZMYWdWVW8dI5JfR2HZ+JMjdkr4Q
	17Y8JhS27ydb3xGEZ8wG0owy0mqOrAco0f7dCX6KU8Rs89ymEwx+bZ/47LnAWtMD
	YV+FUsM33SS48CZDwRn7enok+5YF0JSm32+gSPdBdK9i+zuOQV9+BWcjP75k2qzd
	MK2u71vE9FFW0eU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Thu, 25 Apr 2013 11:57:37 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Porting to 64 bit Cygwin (was Re: Difference in 32/64-bit curl.)
Message-ID: <20130425095737.GA2875@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <51766C22.10702@bahnhof.se> <51770372.4070408@t-online.de> <20130424125930.GQ26397@calimero.vinschen.de> <20130424134749.GR26397@calimero.vinschen.de> <517803D9.3060504@t-online.de> <20130424174401.GY26397@calimero.vinschen.de> <51783547.9010002@t-online.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <51783547.9010002@t-online.de>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Apr 24 21:40, Christian Franke wrote:
> Corinna Vinschen wrote:
> >>- DON'T forget to add casts if such Win32 API types are used with
> >>printf(). This:
> >>
> >>   printf("Win32 Error=%lu\n", GetLastError());
> >>
> >>worked for all i686 and Windows x86_64, but fails now on Cygwin x86_64.
> >I skipped that because the FAQ entry is not exactly what I wrote in my
> >mail.  Do you still think this is necessary?
> 
> No - these cases would be reported by compiler if -W[error=]format
> is enabled.
> 
> Yes - the knowledge that there is no portable way to pass DWORD,
> LONG, ... to printf() without a cast might help to write correct
> code without test builds on all platforms :-)

I extended the FAQ entry and added two more:

http://cygwin.com/faq-nochunks.html#faq.programming.64bitporting
http://cygwin.com/faq-nochunks.html#faq.programming.64bitporting-fail
http://cygwin.com/faq-nochunks.html#faq.programming.64bitporting-cygwin64


Corinna

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

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

