Commit 61521d27 authored by Stefan Behnel's avatar Stefan Behnel

merge

parents 97fb24d7 11ed9af8
......@@ -406,6 +406,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln('#define PY_SSIZE_T_CLEAN')
for filename in env.python_include_files:
code.putln('#include "%s"' % filename)
code.putln("#ifndef Py_PYTHON_H")
code.putln(" #error Python headers needed to compile C extensions, please install development version of Python.")
code.putln("#endif")
code.putln("#ifndef PY_LONG_LONG")
code.putln(" #define PY_LONG_LONG LONG_LONG")
code.putln("#endif")
......
......@@ -3,6 +3,7 @@
#
cdef class Spam:
cdef public int amount
def __new__(self):
self.amount = 0
......
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