adding void to the c function

This commit is contained in:
Tarek Ziadé 2009-05-13 22:16:03 +00:00
parent 1652410429
commit d547144f0f
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class BuildExtTestCase(support.TempdirManager,
def test_get_outputs(self):
tmp_dir = self.mkdtemp()
c_file = os.path.join(tmp_dir, 'foo.c')
self.write_file(c_file, 'void initfoo() {};\n')
self.write_file(c_file, 'void initfoo(void) {};\n')
ext = Extension('foo', [c_file], optional=False)
dist = Distribution({'name': 'xx',
'ext_modules': [ext]})