From 56d65e3399c437b455312a8555e94b359294894a Mon Sep 17 00:00:00 2001 From: Andy Heninger <andyh@apache.org> Date: Tue, 7 Nov 2000 18:44:25 +0000 Subject: [PATCH] WIn32 - Changed InterlockedCompareExchange for compatibility with Borland BCB5 Pieter Van_Dyck git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172461 13f79535-47bb-0310-9956-ffa450edef68 --- src/util/Platforms/Win32/Win32PlatformUtils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/Platforms/Win32/Win32PlatformUtils.cpp b/src/util/Platforms/Win32/Win32PlatformUtils.cpp index d66a1f8df..eb7d02a0d 100644 --- a/src/util/Platforms/Win32/Win32PlatformUtils.cpp +++ b/src/util/Platforms/Win32/Win32PlatformUtils.cpp @@ -646,11 +646,11 @@ XMLPlatformUtils::compareAndSwap( void** toFill // Note we have to cast off the constness of some of these because // the system APIs are not C++ aware in all cases. // - return ::InterlockedCompareExchange + return (void *) ::InterlockedCompareExchange ( - toFill - , (void*)newValue - , (void*)toCompare + (long *)toFill + , (long)newValue + , (long)toCompare ); #endif -- GitLab