summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>2012-10-27 13:04:04 +0200
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>2012-10-27 13:04:04 +0200
commitc61a218efb2a0ec4f493bcc9fa735306f779ea64 (patch)
tree56fc5bbe90c21d2e0879ad083fa290d9100fc0be
parentc2c2b9c4b0571f4e6050de78ae8fd813d1be7431 (diff)
downloadlibpam-radius-auth-c61a218efb2a0ec4f493bcc9fa735306f779ea64.tar.gz
libpam-radius-auth-c61a218efb2a0ec4f493bcc9fa735306f779ea64.zip
Fixes #1 Use __BYTE_ORDER when available
-rw-r--r--md5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/md5.c b/md5.c
index 7744f2c..999318d 100644
--- a/md5.c
+++ b/md5.c
@@ -42,7 +42,9 @@
#include <string.h>
#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