projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2a7ee9
)
Py2.3 does not automatically include eval.h in Python.h
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 12 Sep 2009 16:37:01 +0000
(18:37 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 12 Sep 2009 16:37:01 +0000
(18:37 +0200)
Cython/Compiler/Builtin.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Builtin.py
b/Cython/Compiler/Builtin.py
index 6cc1a1fca3ef104add653eefc33d51d4066f277d..a4bf037ab5acc64a877812d0c6c5724c19661545 100644
(file)
--- 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;