From: Guido van Rossum Date: Fri, 12 Jan 1996 01:38:49 +0000 (+0000) Subject: 64-bit patch X-Git-Tag: v1.4b1~404 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b123691384fefed75ccc71fddb028e163fcaa6c7;p=python 64-bit patch --- diff --git a/Modules/md5.h b/Modules/md5.h index 29ac5407e0..c273000c7c 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 +#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