X-Recipient: archive-cygwin AT delorie DOT 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=fCPeWiJuIx3R/DN35Lcy3G1QzittWfszgxbXkZqUWTI D5xE5U59nSNNSLRWHfNINrgHa/cUoMCR1Z3T7aBcQZu5kOM79ufThQnSV4oKNyx7 VVZqqHobHAaRZ36HXYSdB3udytIAsQjgKz96YLDKLe/TweGDmNxZ3yIEuUTu7Mp8 = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=0u5TJNg4bAAa7SB5GN1jZkYNwU4=; b=S/Xczk5TPlA5u2w15 /NRxcbOfYXI5JbsrGkHEW93IIXFbieDQzJLO/zE5mxXdXcp5oP4JpjnKMMiWPGLr gEFyY4sH8luOlp75ZmSBGQfebPmUBSH4HUpXD0vRjh32vWmocDpWxl07vpl/eptd GuvYmYz6jCF0eifn0XYagQLP00= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Message-ID: <51783547.9010002@t-online.de> Date: Wed, 24 Apr 2013 21:40:55 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 SeaMonkey/2.16.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Porting to 64 bit Cygwin (was Re: Difference in 32/64-bit curl.) References: <51766C22 DOT 10702 AT bahnhof DOT se> <51770372 DOT 4070408 AT t-online DOT de> <20130424125930 DOT GQ26397 AT calimero DOT vinschen DOT de> <20130424134749 DOT GR26397 AT calimero DOT vinschen DOT de> <517803D9 DOT 3060504 AT t-online DOT de> <20130424174401 DOT GY26397 AT calimero DOT vinschen DOT de> In-Reply-To: <20130424174401.GY26397@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 :-) Christian -- 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