From aabe2441765c632bba697945491e3e0ac29ac886 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 8 Jan 2011 19:49:38 +0100 Subject: build-sys: use WORDS_BIGENDIAN to determine platform byte-order Autoconf contains the right magic to determine the endianness on many platforms next to Linux. This reverses previous commits to move away from WORDS_BIGENDIAN: "use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN" This is necessary to compile on non Linux platforms like Darwin and Solaris. Signed-off-by: Fabian Groffen --- lib/md5.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/md5.c b/lib/md5.c index 6ad4b684..071630f1 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -14,16 +14,11 @@ * needed on buffers full of bytes, and then call MD5Final, which * will fill a supplied 16-byte array with the digest. */ -#include #include /* for memcpy() */ #include "md5.h" -#if !defined __BYTE_ORDER || !(__BYTE_ORDER == __LITTLE_ENDIAN) && !(__BYTE_ORDER == __BIG_ENDIAN) -#error missing __BYTE_ORDER -#endif - -#if (__BYTE_ORDER == __LITTLE_ENDIAN) +#if !defined(WORDS_BIGENDIAN) #define byteReverse(buf, len) /* Nothing */ #else void byteReverse(unsigned char *buf, unsigned longs); -- cgit v1.2.3