From bc874e116fb4e785081344c2ae39aed3bd072288 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Thu, 13 May 2010 20:53:58 +0100 Subject: [PATCH] msvc: Select the "fast" definition of the {get,put}_be32() macros On Intel machines, the msvc compiler defines the CPU architecture macros _M_IX86 and _M_X64 (equivalent to __i386__ and __x86_64__ respectively). Use these macros in the pre-processor expression to select the "fast" definition of the {get,put}_be32() macros. Signed-off-by: Ramsay Jones --- src/block-sha1/sha1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/block-sha1/sha1.c b/src/block-sha1/sha1.c index b433410c8..e3409fb59 100644 --- a/src/block-sha1/sha1.c +++ b/src/block-sha1/sha1.c @@ -68,6 +68,7 @@ */ #if defined(__i386__) || defined(__x86_64__) || \ + defined(_M_IX86) || defined(_M_X64) || \ defined(__ppc__) || defined(__ppc64__) || \ defined(__powerpc__) || defined(__powerpc64__) || \ defined(__s390__) || defined(__s390x__)