summaryrefslogtreecommitdiff
path: root/src/md5.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2012-03-19 12:55:42 +0000
committerXavier Roche <xroche@users.noreply.github.com>2012-03-19 12:55:42 +0000
commit844ecc37072d515513177c65a8c9dc35c9cdfc1a (patch)
tree733b1fe039c0c37095a594b66d5076f3f5a0153d /src/md5.h
parent25adbdabb47499fe641c7bd9595024ff82667058 (diff)
httrack 3.33.16
Diffstat (limited to 'src/md5.h')
-rw-r--r--src/md5.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/md5.h b/src/md5.h
index f5e5428..12613fe 100644
--- a/src/md5.h
+++ b/src/md5.h
@@ -1,16 +1,29 @@
#ifndef MD5_H
#define MD5_H
-#ifdef __alpha
-typedef unsigned int uint32;
+#ifdef _WIN32
+#ifndef SIZEOF_LONG
+#define SIZEOF_LONG 4
+#endif
#else
+#include "config.h"
+#endif
+
+#if SIZEOF_LONG==8
+typedef unsigned int uint32;
+#elif SIZEOF_LONG==4
typedef unsigned long uint32;
+#else
+#error undefined: SIZEOF_LONG
#endif
struct MD5Context {
+ unsigned char in[64];
uint32 buf[4];
uint32 bits[2];
- unsigned char in[64];
+#ifdef _WIN32_WCE
+ uint32 pad[2];
+#endif
int doByteReverse;
};