Py2.3 does not automatically include eval.h in Python.h
authorStefan Behnel <scoder@users.berlios.de>
Sat, 12 Sep 2009 16:37:01 +0000 (18:37 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 12 Sep 2009 16:37:01 +0000 (18:37 +0200)
Cython/Compiler/Builtin.py

index 6cc1a1fca3ef104add653eefc33d51d4066f277d..a4bf037ab5acc64a877812d0c6c5724c19661545 100644 (file)
@@ -166,6 +166,11 @@ proto = """
 static PyObject* __Pyx_PyRun(PyObject*, PyObject*, PyObject*);
 """,
 impl = '''
+#if PY_VERSION_HEX < 0x02040000
+#ifndef Py_EVAL_H
+#include "eval.h"
+#endif
+#endif
 static PyObject* __Pyx_PyRun(PyObject* o, PyObject* globals, PyObject* locals) {
     PyObject* result;
     PyObject* s = 0;