@matheusbsbs / matheus-bagliano / commits / 078e9bce1e
Fork 0

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 <ramsay@ramsay1.demon.co.uk> Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ramsay Jones committed Jun 23, 2010 at 20:47 UTC 078e9bce1e8e2484d33d7400ae02c10954fd93ac
1 file changed +1
block-sha1/sha1.c
+1
@@ -70,6 +70,7 @@
70 */
71
72 #if defined(__i386__) || defined(__x86_64__) || \
73 + defined(_M_IX86) || defined(_M_X64) || \
74 defined(__ppc__) || defined(__ppc64__) || \
75 defined(__powerpc__) || defined(__powerpc64__) || \
76 defined(__s390__) || defined(__s390x__)