Fixes linking of `PyOS_FSPath` on PyPy.

This commit is contained in:
Tpt 2023-08-09 16:19:17 +02:00
parent 1e5a49557d
commit dd04d2c4cc
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
Linking of `PyOS_FSPath` on PyPy.

View File

@ -1,5 +1,6 @@
use crate::object::PyObject;
extern "C" {
#[cfg_attr(PyPy, link_name = "PyPyOS_FSPath")]
pub fn PyOS_FSPath(path: *mut PyObject) -> *mut PyObject;
}