aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/md5.c')
-rw-r--r--cipher/md5.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cipher/md5.c b/cipher/md5.c
index a3725466b..035eaf11b 100644
--- a/cipher/md5.c
+++ b/cipher/md5.c
@@ -301,7 +301,10 @@ md5_final( MD5_CONTEXT *hd )
#define X(a) do { *p++ = hd->##a ; *p++ = hd->##a >> 8; \
*p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
#else /* little endian */
- #define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)
+ /*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
+ /* Unixware's cpp doesn't like the above construct so we do it his way:
+ * (reported by Allan Clark) */
+ #define X(a) do { *(u32*)p = (*hd).a ; p += 4; } while(0)
#endif
X(A);
X(B);