Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 73847 invoked from network); 20 Sep 2004 22:52:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Sep 2004 22:52:44 -0000 Received: (qmail 8715 invoked by uid 500); 20 Sep 2004 22:52:43 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 8540 invoked by uid 500); 20 Sep 2004 22:52:40 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 8340 invoked by uid 99); 20 Sep 2004 22:52:38 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Message-ID: <414F5E77.3050408@us.ibm.com> Date: Mon, 20 Sep 2004 18:49:27 -0400 From: Allan Edwards User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@apr.apache.org Subject: [Fwd: Re: cvs commit: apr/atomic/win32 apr_atomic.c] Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Sep 2004 22:49:27.0328 (UTC) FILETIME=[15218200:01C49F64] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N meant to reply to dev@apr also -------- Original Message -------- Subject: Re: cvs commit: apr/atomic/win32 apr_atomic.c Date: Mon, 20 Sep 2004 18:42:24 -0400 From: Allan Edwards To: Cliff Woolley References: <20040920192013.71968.qmail@minotaur.apache.org> > Doesn't this just mean that the definition of apr_atomic_win32_ptr_val_fn > is wrong on win64? Wouldn't it be cleaner to redefine that on win64 > instead of these two #if #else cases? The problem is with the use of a typedef to remap the function. It makes the compiler think there is an external function called InterlockedExchangeAdd when it really is an intrinsic function. So redefining for win64 does not work (in fact no remapping would be needed for win64 since it matches the typedef). Allan