Commit 4ef6edb0 authored by Erik M. Bray's avatar Erik M. Bray

Use a headerfile for cfuncs.c, otherwise this test code will fail to build on Windows

See https://mail.python.org/pipermail/cython-devel/2016-April/004777.html
parent fe871226
......@@ -94,6 +94,8 @@ class DebuggerTestCase(unittest.TestCase):
shutil.copy(codefile, self.destfile)
shutil.copy(cfuncs_file, self.cfuncs_destfile + '.c')
shutil.copy(cfuncs_file.replace('.c', '.h'),
self.cfuncs_destfile + '.h')
compiler = ccompiler.new_compiler()
compiler.compile(['cfuncs.c'], debug=True, extra_postargs=['-fPIC'])
......
void some_c_function(void);
cdef extern from "stdio.h":
int puts(char *s)
cdef extern:
cdef extern from "cfuncs.h":
void some_c_function()
import os
......
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