From cb0483384b71df54874e6841efd18aa44f85f8d4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 21 Jul 1996 02:34:55 +0000 Subject: Use INT_MAX/LONG_MAX instead of non-ANSI LONG_BIT --- Modules/md5.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Modules/md5.h') diff --git a/Modules/md5.h b/Modules/md5.h index 6a14df6a0a..1ba82b37a3 100644 --- a/Modules/md5.h +++ b/Modules/md5.h @@ -48,16 +48,15 @@ typedef unsigned short int UINT2; #ifdef HAVE_LIMITS_H #include #else -#ifndef LONG_BIT -#define LONG_BIT 32 -#endif +/* Wild guess */ +#define LONG_MAX 2147483647L #endif /* UINT4 defines a four byte word */ -#if WORD_BIT == 32 +#if defined(INT_MAX) && INT_MAX == 2147483647 typedef unsigned int UINT4; #else -#if LONG_BIT == 32 +#if defined(LONG_MAX) && LONG_MAX == 2147483647L typedef unsigned long int UINT4; #endif /* Too bad if neither is */ -- cgit v1.2.1