Skip to content

Commit

Permalink
Add FFI definition for PyObject_AsFileDescriptor.
Browse files Browse the repository at this point in the history
Fixes PyO3#935.
  • Loading branch information
thedrow committed May 18, 2020
1 parent c393d4a commit 5e9c031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ffi/fileobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ extern "C" {
arg7: *const c_char,
arg8: c_int,
) -> *mut PyObject;
pub fn PyObject_AsFileDescriptor(arg1: *mut PyObject) -> c_int;
#[cfg_attr(PyPy, link_name = "PyPyFile_GetLine")]
pub fn PyFile_GetLine(arg1: *mut PyObject, arg2: c_int) -> *mut PyObject;
#[cfg_attr(PyPy, link_name = "PyPyFile_WriteObject")]
Expand Down

0 comments on commit 5e9c031

Please sign in to comment.