Skip to content

Commit 7791885

Browse files
committed
Import 'c_ushort' only if compiling against CPython 3.14 or later
1 parent 1eeae28 commit 7791885

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyo3-ffi/src/cpython/unicodeobject.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
use crate::Py_hash_t;
33
use crate::{PyObject, Py_UCS1, Py_UCS2, Py_UCS4, Py_ssize_t};
44
use libc::wchar_t;
5-
use std::os::raw::{c_char, c_int, c_uint, c_ushort, c_void};
5+
use std::os::raw::{c_char, c_int, c_uint, c_void};
6+
#[cfg(Py_3_14)]
7+
use std::os::raw::c_ushort;
68

79
// skipped Py_UNICODE_ISSPACE()
810
// skipped Py_UNICODE_ISLOWER()

0 commit comments

Comments
 (0)