diff --git a/Modules/_io/_iomodule.h b/Modules/_io/_iomodule.h index 08589513a5b..1383ffc6c85 100644 --- a/Modules/_io/_iomodule.h +++ b/Modules/_io/_iomodule.h @@ -86,7 +86,7 @@ typedef PY_LONG_LONG Py_off_t; # define PyLong_FromOff_t PyLong_FromLongLong # define PY_OFF_T_MAX PY_LLONG_MAX # define PY_OFF_T_MIN PY_LLONG_MIN -# define PY_PRIdOFF "lld" /* format to use in printf with type off_t */ +# define PY_PRIdOFF "I64d" /* format to use in printf with type off_t */ # define PY_OFF_T_COMPAT PY_LONG_LONG /* type compatible with off_t */ #else