mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/utils/lib/md5_c.c


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/utils/lib/md5_c.c
Date: Wed, 30 Nov 2005 18:46:28 -0500

Index: mldonkey/src/utils/lib/md5_c.c
diff -u mldonkey/src/utils/lib/md5_c.c:1.4 mldonkey/src/utils/lib/md5_c.c:1.5
--- mldonkey/src/utils/lib/md5_c.c:1.4  Thu Nov 20 16:43:25 2003
+++ mldonkey/src/utils/lib/md5_c.c      Wed Nov 30 23:46:25 2005
@@ -40,6 +40,7 @@
 #include "md5.h"
 #include "os_stubs.h"
 #include <string.h>
+#include <caml/config.h>
 
 #ifdef TEST
 /*
@@ -171,10 +172,7 @@
        c = pms->abcd[2], d = pms->abcd[3];
     md5_word_t t;
 
-#ifndef ARCH_IS_BIG_ENDIAN
-# define ARCH_IS_BIG_ENDIAN 1  /* slower, default implementation */
-#endif
-#if ARCH_IS_BIG_ENDIAN
+#if defined(ARCH_BIG_ENDIAN)
 
     /*
      * On big-endian machines, we must arrange the bytes in the right
@@ -187,7 +185,7 @@
     for (i = 0; i < 16; ++i, xp += 4)
        X[i] = xp[0] + (xp[1] << 8) + (xp[2] << 16) + (xp[3] << 24);
 
-#else  /* !ARCH_IS_BIG_ENDIAN */
+#else  /* !ARCH_BIG_ENDIAN */
 
     /*
      * On little-endian machines, we can process properly aligned data




reply via email to

[Prev in Thread] Current Thread [Next in Thread]