From e868b825bb222945d3ceaa4ade92c095e2ee8475 Mon Sep 17 00:00:00 2001 From: cgohlke Date: Tue, 4 Feb 2014 15:52:41 -0800 Subject: [PATCH] Fix ImportError of C extensions on Python 3.4b2 --- llvmpy/gen/gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvmpy/gen/gen.py b/llvmpy/gen/gen.py index cd63b68..bb408a1 100644 --- a/llvmpy/gen/gen.py +++ b/llvmpy/gen/gen.py @@ -9,7 +9,7 @@ extern "C" { #if (PY_MAJOR_VERSION >= 3) -PyObject * +PyMODINIT_FUNC PyInit_%(module)s(void) { PyObject *module = create_python_module("%(module)s", meth_%(ns)s);