summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-12 01:38:49 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-12 01:38:49 (GMT)
commitb123691384fefed75ccc71fddb028e163fcaa6c7 (patch)
tree21f3c71f7af9f49722dc79af2050a5ca4a7697d0 /Modules
parentb28911cdefeef7b263477108f6ebd1210d193e3a (diff)
downloadcpython-b123691384fefed75ccc71fddb028e163fcaa6c7.zip
cpython-b123691384fefed75ccc71fddb028e163fcaa6c7.tar.gz
cpython-b123691384fefed75ccc71fddb028e163fcaa6c7.tar.bz2
64-bit patch
Diffstat (limited to 'Modules')
-rw-r--r--Modules/md5.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/md5.h b/Modules/md5.h
index 29ac540..c273000 100644
--- a/Modules/md5.h
+++ b/Modules/md5.h
@@ -45,8 +45,23 @@ typedef unsigned char *POINTER;
/* UINT2 defines a two byte word */
typedef unsigned short int UINT2;
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#else
+#ifndef LONG_BIT
+#define LONG_BIT 32
+#endif
+#endif
+
/* UINT4 defines a four byte word */
+#if WORD_BIT == 32
+typedef unsigned int UINT4;
+#else
+#if LONG_BIT == 32
typedef unsigned long int UINT4;
+#endif
+/* Too bad if neither is */
+#endif
/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it