Skip to content

Commit 078e9bc

Browse files
Ramsay Jonesgitster
authored andcommitted
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 <[email protected]> Acked-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 492b107 commit 078e9bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

block-sha1/sha1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
*/
7171

7272
#if defined(__i386__) || defined(__x86_64__) || \
73+
defined(_M_IX86) || defined(_M_X64) || \
7374
defined(__ppc__) || defined(__ppc64__) || \
7475
defined(__powerpc__) || defined(__powerpc64__) || \
7576
defined(__s390__) || defined(__s390x__)

0 commit comments

Comments
 (0)