From c61a218efb2a0ec4f493bcc9fa735306f779ea64 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Sat, 27 Oct 2012 13:04:04 +0200 Subject: Fixes #1 Use __BYTE_ORDER when available --- md5.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'md5.c') diff --git a/md5.c b/md5.c index 7744f2c..999318d 100644 --- a/md5.c +++ b/md5.c @@ -42,7 +42,9 @@ #include #include "md5.h" -#if defined(__sparc) || defined(__mips) +#if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN +#define HIGHFIRST +#elif defined(__sparc) || defined(__mips) #define HIGHFIRST #endif -- cgit v1.2.3