]> mj.ucw.cz Git - libucw.git/commitdiff
MD5 didn't work on big-endian machines, because it tested the wrong
authorMartin Mares <mj@ucw.cz>
Thu, 22 Jan 2004 15:31:46 +0000 (15:31 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 22 Jan 2004 15:31:46 +0000 (15:31 +0000)
endianity switch.

lib/md5.c

index 8bccf00480a26b7720250c872a1c4363474279cc..a0e50ab8925a154450ac388063bff752da739571 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -20,7 +20,7 @@
 
 #include <string.h>            /* for memcpy() */
 
-#ifndef HIGHFIRST
+#ifdef CPU_LITTLE_ENDIAN
 #define byteReverse(buf, len)  /* Nothing */
 #else
 void byteReverse(unsigned char *buf, unsigned longs);