From: Stefan Behnel Date: Sat, 12 Sep 2009 16:37:01 +0000 (+0200) Subject: Py2.3 does not automatically include eval.h in Python.h X-Git-Tag: 0.11.3.rc0~12^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=27353fda5a08a668940fa23660d46c7185b2c6c0;p=cython.git Py2.3 does not automatically include eval.h in Python.h --- 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;