Re: Can't compile nightly build with VC6

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.