Patch from Robert Longson <longsonr@gmail.com> for _InterlockedCompareExchange on MSVC7.1 (416813, r=me).

This commit is contained in:
brendan@mozilla.org 2008-02-13 02:21:50 -08:00
parent 84590b7a1f
commit 0c8245fc08

View File

@ -86,6 +86,8 @@ js_UnlockGlobal(void *id)
/* Exclude Alpha NT. */
#if defined(_WIN32) && defined(_M_IX86)
#pragma warning( disable : 4035 )
extern long __cdecl
_InterlockedCompareExchange(long *volatile dest, long exchange, long comp);
#pragma intrinsic(_InterlockedCompareExchange)
static JS_INLINE int