From: Martin Mares Date: Thu, 22 Jan 2004 15:31:46 +0000 (+0000) Subject: MD5 didn't work on big-endian machines, because it tested the wrong X-Git-Tag: holmes-import~1129 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ce5dabbf7cf938825e6ed50f11ec9b69ba11a4b5;p=libucw.git MD5 didn't work on big-endian machines, because it tested the wrong endianity switch. --- diff --git a/lib/md5.c b/lib/md5.c index 8bccf004..a0e50ab8 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -20,7 +20,7 @@ #include /* for memcpy() */ -#ifndef HIGHFIRST +#ifdef CPU_LITTLE_ENDIAN #define byteReverse(buf, len) /* Nothing */ #else void byteReverse(unsigned char *buf, unsigned longs);