Skip to content

Commit

Permalink
fix issues building on older pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Aug 6, 2024
1 parent c12f394 commit d2e4c39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyo3-ffi/src/cpython/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub use self::import::*;
#[cfg(all(Py_3_8, not(PyPy)))]
pub use self::initconfig::*;
pub use self::listobject::*;
#[cfg(Py_3_13)]
pub use self::lock::*;
pub use self::longobject::*;
#[cfg(all(Py_3_9, not(PyPy)))]
Expand Down
4 changes: 3 additions & 1 deletion pyo3-ffi/src/object.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
use crate::pyport::{Py_hash_t, Py_ssize_t};
#[cfg(not(Py_LIMITED_API))]
#[cfg(all(Py_3_13, not(Py_LIMITED_API)))]
use crate::PyMutex;
use std::mem;
use std::os::raw::{c_char, c_int, c_uint, c_ulong, c_void};
use std::ptr;
#[cfg(Py_GIL_DISABLED)]
use std::sync::atomic::Ordering::Relaxed;
#[cfg(Py_GIL_DISABLED)]
use std::sync::atomic::{AtomicIsize, AtomicU32};

#[cfg(Py_LIMITED_API)]
Expand Down

0 comments on commit d2e4c39

Please sign in to comment.