From 427cdf09f832a7c36c48648022241415b47d9e83 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sun, 17 May 2015 18:38:35 +0200 Subject: [PATCH] Fix building python27-sys without Py_USING_UNICODE. --- python27-sys/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python27-sys/src/lib.rs b/python27-sys/src/lib.rs index 0c1ad74d..ebfbf883 100644 --- a/python27-sys/src/lib.rs +++ b/python27-sys/src/lib.rs @@ -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 }