mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Replace long long with PY_LONG_LONG
This commit is contained in:
parent
c9dbca8d63
commit
791181b0ff
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ typedef PY_LONG_LONG Py_off_t;
|
||||||
# define PY_OFF_T_MAX PY_LLONG_MAX
|
# define PY_OFF_T_MAX PY_LLONG_MAX
|
||||||
# define PY_OFF_T_MIN PY_LLONG_MIN
|
# define PY_OFF_T_MIN PY_LLONG_MIN
|
||||||
# define PY_PRIdOFF "lld" /* format to use in printf with type off_t */
|
# define PY_PRIdOFF "lld" /* format to use in printf with type off_t */
|
||||||
# define PY_OFF_T_COMPAT long long /* standard type compatible with off_t */
|
# define PY_OFF_T_COMPAT PY_LONG_LONG /* type compatible with off_t */
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* Other platforms use off_t */
|
/* Other platforms use off_t */
|
||||||
|
@ -103,7 +103,7 @@ typedef off_t Py_off_t;
|
||||||
# define PY_OFF_T_MAX PY_LLONG_MAX
|
# define PY_OFF_T_MAX PY_LLONG_MAX
|
||||||
# define PY_OFF_T_MIN PY_LLONG_MIN
|
# define PY_OFF_T_MIN PY_LLONG_MIN
|
||||||
# define PY_PRIdOFF "lld"
|
# define PY_PRIdOFF "lld"
|
||||||
# define PY_OFF_T_COMPAT long long
|
# define PY_OFF_T_COMPAT PY_LONG_LONG
|
||||||
#elif (SIZEOF_OFF_T == SIZEOF_LONG)
|
#elif (SIZEOF_OFF_T == SIZEOF_LONG)
|
||||||
# define PyLong_AsOff_t PyLong_AsLong
|
# define PyLong_AsOff_t PyLong_AsLong
|
||||||
# define PyLong_FromOff_t PyLong_FromLong
|
# define PyLong_FromOff_t PyLong_FromLong
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue