summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stun/md5.c2
-rw-r--r--stun/sha1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/stun/md5.c b/stun/md5.c
index 4e27503..536ee52 100644
--- a/stun/md5.c
+++ b/stun/md5.c
@@ -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
/*
diff --git a/stun/sha1.c b/stun/sha1.c
index 4155c1c..9461f38 100644
--- a/stun/sha1.c
+++ b/stun/sha1.c
@@ -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