Fix building python27-sys without Py_USING_UNICODE.
This commit is contained in:
parent
bb13ecd610
commit
427cdf09f8
|
@ -119,10 +119,10 @@ pub mod structmember;
|
||||||
|
|
||||||
#[cfg(not(py_sys_config="Py_USING_UNICODE"))]
|
#[cfg(not(py_sys_config="Py_USING_UNICODE"))]
|
||||||
#[inline(always)]
|
#[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"))]
|
#[cfg(not(py_sys_config="Py_USING_UNICODE"))]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn PyUnicode_CheckExact(op : *mut PyObject) -> c_int { 0 }
|
pub fn PyUnicode_CheckExact(op : *mut PyObject) -> libc::c_int { 0 }
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue