Fix building python27-sys without Py_USING_UNICODE.

This commit is contained in:
Daniel Grunwald 2015-05-17 18:38:35 +02:00
parent bb13ecd610
commit 427cdf09f8
1 changed files with 2 additions and 2 deletions

View File

@ -119,10 +119,10 @@ pub mod structmember;
#[cfg(not(py_sys_config="Py_USING_UNICODE"))]
#[inline(always)]
pub fn PyUnicode_Check(op : *mut PyObject) -> c_int { 0 }
pub fn PyUnicode_Check(op : *mut PyObject) -> libc::c_int { 0 }
#[cfg(not(py_sys_config="Py_USING_UNICODE"))]
#[inline(always)]
pub fn PyUnicode_CheckExact(op : *mut PyObject) -> c_int { 0 }
pub fn PyUnicode_CheckExact(op : *mut PyObject) -> libc::c_int { 0 }