diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2013-06-05 22:29:30 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2013-06-05 22:29:30 (GMT) |
commit | ac0ad884d1ecd684c392410720b27381b2316730 (patch) | |
tree | ff6ac8d74faa2c75b9eb474194708a594cbe1447 /Include/longobject.h | |
parent | 448f1a86ef13fba826bac70f81b265dc50e333ac (diff) | |
download | cpython-ac0ad884d1ecd684c392410720b27381b2316730.zip cpython-ac0ad884d1ecd684c392410720b27381b2316730.tar.gz cpython-ac0ad884d1ecd684c392410720b27381b2316730.tar.bz2 |
Issue #17931: Resolve confusion on Windows between pids and process handles.
Diffstat (limited to 'Include/longobject.h')
-rw-r--r-- | Include/longobject.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Include/longobject.h b/Include/longobject.h index cd0cf30..886bc63 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -52,6 +52,19 @@ PyAPI_FUNC(PyObject *) PyLong_GetInfo(void); #error "sizeof(pid_t) is neither sizeof(int), sizeof(long) or sizeof(long long)" #endif /* SIZEOF_PID_T */ +#if SIZEOF_VOID_P == SIZEOF_INT +# define _Py_PARSE_INTPTR "i" +# define _Py_PARSE_UINTPTR "I" +#elif SIZEOF_VOID_P == SIZEOF_LONG +# define _Py_PARSE_INTPTR "l" +# define _Py_PARSE_UINTPTR "k" +#elif defined(SIZEOF_LONG_LONG) && SIZEOF_VOID_P == SIZEOF_LONG_LONG +# define _Py_PARSE_INTPTR "L" +# define _Py_PARSE_UINTPTR "K" +#else +# error "void* different in size from int, long and long long" +#endif /* SIZEOF_VOID_P */ + /* Used by Python/mystrtoul.c. */ #ifndef Py_LIMITED_API PyAPI_DATA(unsigned char) _PyLong_DigitValue[256]; |