Commit afbd65d
committed
Define PY_SSIZE_T_CLEAN for Python 3.10
On Python 3.10, `PY_SSIZE_T_CLEAN` must be defined in order to use '#'
formats. `ioctl_func` needs a slight change to comply with the new
regime.
(Several functions pass `size_t` here, which may be a little dodgy, but
the main point of this change seems to have been to transition from
`int` to `Py_ssize_t`, and at least `size_t` and `Py_ssize_t` have the
same size.)
Closes #41.1 parent a11cb33 commit afbd65d
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
1186 | 1187 | | |
1187 | 1188 | | |
1188 | 1189 | | |
1189 | | - | |
| 1190 | + | |
1190 | 1191 | | |
1191 | 1192 | | |
1192 | 1193 | | |
| |||
0 commit comments