You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Bernd Dongus <be...@brainag.com> on 2000/10/05 14:34:47 UTC
BCB5 support in release 1.3.0
Hello.
I don't know if other compilers allow the passing of "toFill" without
typecasting. BCB5 doesn't. I had to change the following passage to get it
compiled.
Changes in Win32PlatformUtils.cpp
// --- start
#ifdef __BORLANDC__
return (long *)::InterlockedCompareExchange
(
(long*)toFill
, (long)newValue
, (long)toCompare
);
#else
// --- stop
return ::InterlockedCompareExchange
(
toFill
, (void*)newValue
, (void*)toCompare
);
// --- start
#endif
// --- stop
#endif
Maybe this should be checked by a project member.
Regards,
Bernd
Re: BCB5 support in release 1.3.0
Posted by Dean Roddey <dr...@charmedquark.com>.
Different compilers surface different prototypes for that API. Its kind of
unfortunate. It seems like MS is also moving towards the 'long' version, I
think, but for now its still the void pointer type in VC++ 6.0.
--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
droddey@charmedquark.com
http://www.charmedquark.com
"It takes two buttocks to make friction"
- African Proverb
----- Original Message -----
From: "Bernd Dongus" <be...@brainag.com>
To: <xe...@xml.apache.org>
Sent: Thursday, October 05, 2000 5:34 AM
Subject: BCB5 support in release 1.3.0
>
>
> Hello.
>
> I don't know if other compilers allow the passing of "toFill" without
> typecasting. BCB5 doesn't. I had to change the following passage to get it
> compiled.
>
> Changes in Win32PlatformUtils.cpp
>
> // --- start
> #ifdef __BORLANDC__
> return (long *)::InterlockedCompareExchange
> (
> (long*)toFill
> , (long)newValue
> , (long)toCompare
> );
> #else
> // --- stop
>
> return ::InterlockedCompareExchange
> (
> toFill
> , (void*)newValue
> , (void*)toCompare
> );
> // --- start
>
> #endif
> // --- stop
>
> #endif
>
> Maybe this should be checked by a project member.
>
> Regards,
> Bernd
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>