Index: builtin_converters.cpp =================================================================== --- builtin_converters.cpp (revision 66775) +++ builtin_converters.cpp (working copy) @@ -365,9 +365,10 @@ } static PyTypeObject const* get_pytype() { return &PyFloat_Type;} }; - +#if PY_VERSION_HEX >= 0x03000000 unaryfunc py_unicode_as_string_unaryfunc = PyUnicode_AsUTF8String; - +#endif + // A SlotPolicy for extracting C++ strings from Python objects. struct string_rvalue_from_python {