Commit 24635506 authored by Stefan Behnel's avatar Stefan Behnel

Py3.0beta compatibility fixes

parent e35931d2
......@@ -4107,6 +4107,7 @@ static INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
type_cache_invalidation_code = [
"""
#if PY_VERSION_HEX >= 0x02060000
/* #define __Pyx_TypeModified(t) PyType_Modified(t) */ /* Py3.0beta1 */
static void __Pyx_TypeModified(PyTypeObject* type); /*proto*/
#else
#define __Pyx_TypeModified(t)
......
......@@ -422,6 +422,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("#endif")
code.putln("#if PY_MAJOR_VERSION >= 3")
code.putln(" #include \"stringobject.h\"") # Py3 compat header for PyString_*()
code.putln(" #define PyBaseString_Type PyUnicode_Type")
code.putln(" #define PyInt_Type PyLong_Type")
code.putln(" #define PyInt_Check(op) PyLong_Check(op)")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment