mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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.
This commit is contained in:
parent
859b407cf1
commit
3293b07df5
5 changed files with 38 additions and 33 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue