Skip to content

Commit

Permalink
msvc: Select the "fast" definition of the {get,put}_be32() macros
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Ramsay Jones authored and gitster committed Jun 28, 2010
1 parent 492b107 commit 078e9bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block-sha1/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,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__)
Expand Down

0 comments on commit 078e9bc

Please sign in to comment.