[NTOSKRNL]

Fix a warning for MSVC, stub __builtin_expect

svn path=/branches/cmake-bringup/; revision=49601
This commit is contained in:
Timo Kreuzer 2010-11-15 22:06:01 +00:00
parent 1c7fc49e5f
commit ac8a48c91f
2 changed files with 2 additions and 1 deletions

View file

@ -1149,7 +1149,7 @@ ExReleasePushLockExclusive(PEX_PUSH_LOCK PushLock)
/* Unlock the pushlock */
OldValue.Value = InterlockedExchangeAddSizeT((PSIZE_T)PushLock,
-(SIZE_T)EX_PUSH_LOCK_LOCK);
-(SSIZE_T)EX_PUSH_LOCK_LOCK);
/* Sanity checks */
ASSERT(OldValue.Locked);

View file

@ -21,6 +21,7 @@
#endif
#elif _MSC_VER
#define UNREACHABLE __assume(0)
#define __builtin_expect(a,b) (a)
#else
#define UNREACHABLE
#endif