From 6b4c38b88757aa643b96310df09681fc7becdf66 Mon Sep 17 00:00:00 2001 From: weidai Date: Wed, 5 Dec 2007 13:49:12 +0000 Subject: [PATCH] add workaround for _interlockedbittestandset64 and _interlockedbittestandreset64 --- misc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc.h b/misc.h index d9b22a69..341476cf 100644 --- a/misc.h +++ b/misc.h @@ -11,9 +11,13 @@ // VC2005 workaround: disable declarations that conflict with winnt.h #define _interlockedbittestandset CRYPTOPP_DISABLED_INTRINSIC_1 #define _interlockedbittestandreset CRYPTOPP_DISABLED_INTRINSIC_2 + #define _interlockedbittestandset64 CRYPTOPP_DISABLED_INTRINSIC_3 + #define _interlockedbittestandreset64 CRYPTOPP_DISABLED_INTRINSIC_4 #include #undef _interlockedbittestandset #undef _interlockedbittestandreset + #undef _interlockedbittestandset64 + #undef _interlockedbittestandreset64 #define CRYPTOPP_FAST_ROTATE(x) 1 #elif _MSC_VER >= 1300 #define CRYPTOPP_FAST_ROTATE(x) ((x) == 32 | (x) == 64)