diff options
author | Guido van Rossum <guido@python.org> | 1998-08-25 16:07:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-25 16:07:15 (GMT) |
commit | 3293b07df58a875afaf3fc82c1e499af59bc99e4 (patch) | |
tree | 8f72dc01a6d24e4df800dddd1d406e966c4ea61d /Include | |
parent | 859b407cf12b0bcf6d7d56e48df765664e41e82b (diff) | |
download | cpython-3293b07df58a875afaf3fc82c1e499af59bc99e4.zip cpython-3293b07df58a875afaf3fc82c1e499af59bc99e4.tar.gz cpython-3293b07df58a875afaf3fc82c1e499af59bc99e4.tar.bz2 |
Patch by Mark Hammond to support 64-bit ints on MS platforms.
The MS compiler doesn't call it 'long long', it uses __int64,
so a new #define, LONG_LONG, has been added and all occurrences
of 'long long' are replaced with it.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/longobject.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Include/longobject.h b/Include/longobject.h index 774bfda..d9bc086 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -51,11 +51,14 @@ extern unsigned long PyLong_AsUnsignedLong Py_PROTO((PyObject *)); extern double PyLong_AsDouble Py_PROTO((PyObject *)); #ifdef HAVE_LONG_LONG -extern PyObject *PyLong_FromLongLong Py_PROTO((long long )); -extern PyObject *PyLong_FromUnsignedLongLong Py_PROTO((unsigned long long)); -extern long long PyLong_AsLongLong Py_PROTO((PyObject *)); -extern unsigned long long PyLong_AsUnsignedLongLong Py_PROTO((PyObject *)); +#ifndef LONG_LONG +#define LONG_LONG long long #endif +extern PyObject *PyLong_FromLongLong Py_PROTO((LONG_LONG)); +extern PyObject *PyLong_FromUnsignedLongLong Py_PROTO((unsigned LONG_LONG)); +extern LONG_LONG PyLong_AsLongLong Py_PROTO((PyObject *)); +extern unsigned LONG_LONG PyLong_AsUnsignedLongLong Py_PROTO((PyObject *)); +#endif /* HAVE_LONG_LONG */ PyObject *PyLong_FromString Py_PROTO((char *, char **, int)); |