Skip to content

Commit

Permalink
Import 'c_ushort' only if compiling against CPython 3.14 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
clin1234 committed Jan 23, 2025
1 parent 1eeae28 commit 7791885
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyo3-ffi/src/cpython/unicodeobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
use crate::Py_hash_t;
use crate::{PyObject, Py_UCS1, Py_UCS2, Py_UCS4, Py_ssize_t};
use libc::wchar_t;
use std::os::raw::{c_char, c_int, c_uint, c_ushort, c_void};
use std::os::raw::{c_char, c_int, c_uint, c_void};
#[cfg(Py_3_14)]
use std::os::raw::c_ushort;

// skipped Py_UNICODE_ISSPACE()
// skipped Py_UNICODE_ISLOWER()
Expand Down

0 comments on commit 7791885

Please sign in to comment.