summaryrefslogtreecommitdiff
path: root/cipher/md5.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-07-26 07:44:40 +0000
committerWerner Koch <wk@gnupg.org>1999-07-26 07:44:40 +0000
commit2418cd21a2ee8c455c8839a45a2a3817dbe5c39b (patch)
tree52e74f6a86be214dd54c6f5cbb22c38c776200e4 /cipher/md5.c
parent57424d4195767b0eaf86bf0f997be0a9d9e2eaf9 (diff)
downloadlibgcrypt-2418cd21a2ee8c455c8839a45a2a3817dbe5c39b.tar.gz
See ChangeLog: Mon Jul 26 09:34:46 CEST 1999 Werner Koch
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 a3725466..035eaf11 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);