summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-10-05 01:42:25 (GMT)
committerTim Peters <tim.peters@gmail.com>2000-10-05 01:42:25 (GMT)
commitd57731f74bdaaf6bb5ce190b5ccebadad218ed2b (patch)
treee4e7344c3395601191e836abd313bbb06565767e /Objects
parentc85eb0bd4b3cfaa6a110d0d7d40553f3e02d02af (diff)
downloadcpython-d57731f74bdaaf6bb5ce190b5ccebadad218ed2b.zip
cpython-d57731f74bdaaf6bb5ce190b5ccebadad218ed2b.tar.gz
cpython-d57731f74bdaaf6bb5ce190b5ccebadad218ed2b.tar.bz2
Move LONG_BIT from intobject.c to pyport.h. #error if it's already been
#define'd to an unreasonable value (several recent gcc systems have misdefined it, causing bogus overflows in integer multiplication). Nuke CHAR_BIT entirely.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/intobject.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 8477a02..b88a05d 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -4,14 +4,6 @@
#include "Python.h"
#include <ctype.h>
-#ifndef CHAR_BIT
-#define CHAR_BIT 8
-#endif
-
-#ifndef LONG_BIT
-#define LONG_BIT (CHAR_BIT * sizeof(long))
-#endif
-
long
PyInt_GetMax(void)
{