summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2015-08-09 12:50:04 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2015-08-09 12:50:04 +0100
commit76cb365a3df3c3a35ee7d38d0f05a2d5f12082fb (patch)
treecba37d42312b8778ce00b80dbef9f4d5207d4d32
parent947f97c5376af2dc3fb0f4c7336149d9dd9649b1 (diff)
MSVC doesn't define __LITTLE_ENDIAN__
-rw-r--r--libs/ardour/sha1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/sha1.c b/libs/ardour/sha1.c
index fab3b372ed..f9dbaac0eb 100644
--- a/libs/ardour/sha1.c
+++ b/libs/ardour/sha1.c
@@ -28,6 +28,10 @@
#include <string.h>
#include <stdlib.h>
+#if defined(PLATFORM_WINDOWS) && !defined(__LITTLE_ENDIAN__)
+#define __LITTLE_ENDIAN__
+#endif
+
#ifdef __BIG_ENDIAN__
# define SHA_BIG_ENDIAN
#elif defined _BIG_ENDIAN