Conditionally mangle the function name

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
This commit is contained in:
Matti Picus 2023-03-14 09:21:35 +11:00 committed by GitHub
parent 0f1ff1d852
commit a7cc5952c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ extern "C" {
step: *mut Py_ssize_t,
) -> c_int;
#[cfg_attr(PyPy, link_name = "PyPySlice_AdjustIndices")]
#[cfg_attr(all(PyPy, Py_3_10), link_name = "PyPySlice_AdjustIndices")]
pub fn PySlice_AdjustIndices(
length: Py_ssize_t,
start: *mut Py_ssize_t,