Skip to Content.
Sympa Menu

freetds - Re: [freetds] Can't compile nightly build with VC6

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Can't compile nightly build with VC6
  • Date: Sun, 24 Oct 2010 04:45:26 -0400

James K. Lowden wrote:
> Unfortunately, the documentation doesn't mention which library provides
> InterlockedExchangePointer.

Actually, it does:

"This function is implemented using a compiler intrinsic where
possible.
For more information, see the Winbase.h header file and
_InterlockedCompareExchangePointer."

That is, it's implemented not by a library, but by a compiler intrinsic.
If the header file is included, the compiler won't assume
InterlockedExchangePointer is an external function returning int (as the
warning indicated) but will instead generate the necessary code in place.


(N.B. Regarding "where possible", above. The documementation for
_InterlockedCompareExchangePointer says "These routines are only available
as intrinsics." I would hope that means if compiler intrinsics are not
available (perhaps because you're using an old compiler, say) you'll get
an error.)

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page