> The whole point of the ifdef is that all Windows builds use the inline > assembly code.
Got it. But then all we needed was #ifdef WIN64 InterlockedCompareExchangePointer(..) #else assembly code #endif Because this entire class (under Win32PlatformUtils.cpp) is going to be used only by windows clients, I guess. The code is not wrong, per se. But the intention behind the coding is slightly confusing because the call to the ::InterlockedCompareExchange at the bottom now belongs to the domain of unreachable code :-). Regards, -Vinayak > -----Original Message----- > From: David N Bertoni/Cambridge/IBM > [mailto:[EMAIL PROTECTED] > Sent: Friday, March 14, 2003 11:37 AM > To: [EMAIL PROTECTED] > Subject: Re: XMLPlatformUtils::compareAndSwap fn > > > > > > > The whole point of the ifdef is that all Windows builds use the inline > assembly code. The ifdef is checked at compile time, but the > assumption is > you would want to build on NT or Win2000, but run on Windows 95. > > Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
