Commit 37be7238 authored by Youness Alaoui's avatar Youness Alaoui

__BYTE_ORDER is not defined in windows, so we assume we're little endian...

__BYTE_ORDER is not defined in windows, so we assume we're little endian whenever we're building on windows...
parent de80c72a
......@@ -36,7 +36,7 @@
static void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
#if __BYTE_ORDER != __BIG_ENDIAN
#if defined(_WIN32) || __BYTE_ORDER != __BIG_ENDIAN
#define byteReverse(buf, len) /* Nothing */
#else
/*
......
......@@ -101,7 +101,7 @@ A million repetitions of "a"
/* blk0() and blk() perform the initial expand. */
/* I got the idea of expanding during the round function from SSLeay */
#if __BYTE_ORDER != __BIG_ENDIAN
#if defined(_WIN32) || __BYTE_ORDER != __BIG_ENDIAN
#define blk0(i) (block->l[i] = (rol(block->l[i], 24) & 0xFF00FF00) | \
(rol(block->l[i], 8) & 0x00FF00FF))
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment