meant to reply to [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]>
To: Cliff Woolley <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

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




Reply via email to