summaryrefslogtreecommitdiffstats
path: root/Include/longobject.h
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-12 05:01:20 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-07-12 05:01:20 (GMT)
commit60519e8d40d779561bfdbd0a2101472e405c6754 (patch)
tree6cb4aa97e65a2d40f00b97c5e1112e7e3384b086 /Include/longobject.h
parent9ee91f11b3ec6822eec66f52d6052532a3fd1548 (diff)
downloadcpython-60519e8d40d779561bfdbd0a2101472e405c6754.zip
cpython-60519e8d40d779561bfdbd0a2101472e405c6754.tar.gz
cpython-60519e8d40d779561bfdbd0a2101472e405c6754.tar.bz2
HAVE_LIMITS_H -- raise #error if not defined; limits.h is std C
ULONG_MAX -- removed; std C requires it in limits.h LONGLONG_MAX -- removed; never used ULONGLONGMAX -- removed; never used
Diffstat (limited to 'Include/longobject.h')
-rw-r--r--Include/longobject.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/Include/longobject.h b/Include/longobject.h
index 6b10625..4cc9402 100644
--- a/Include/longobject.h
+++ b/Include/longobject.h
@@ -33,18 +33,6 @@ extern DL_IMPORT(PyObject *) PyLong_FromVoidPtr(void *);
extern DL_IMPORT(void *) PyLong_AsVoidPtr(PyObject *);
#ifdef HAVE_LONG_LONG
-
-/* Hopefully this is portable... */
-#ifndef ULONG_MAX
-#define ULONG_MAX 4294967295U
-#endif
-#ifndef LONGLONG_MAX
-#define LONGLONG_MAX 9223372036854775807LL
-#endif
-#ifndef ULONGLONG_MAX
-#define ULONGLONG_MAX 0xffffffffffffffffULL
-#endif
-
extern DL_IMPORT(PyObject *) PyLong_FromLongLong(LONG_LONG);
extern DL_IMPORT(PyObject *) PyLong_FromUnsignedLongLong(unsigned LONG_LONG);
extern DL_IMPORT(LONG_LONG) PyLong_AsLongLong(PyObject *);