From 27353fda5a08a668940fa23660d46c7185b2c6c0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 12 Sep 2009 18:37:01 +0200 Subject: [PATCH] Py2.3 does not automatically include eval.h in Python.h --- Cython/Compiler/Builtin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 6cc1a1fc..a4bf037a 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -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; -- 2.26.2