Remove traces of Py_InitModule*.
diff --git a/PC/example_nt/example.c b/PC/example_nt/example.c
index 953fb82..d807311 100644
--- a/PC/example_nt/example.c
+++ b/PC/example_nt/example.c
@@ -13,8 +13,20 @@
{NULL, NULL}
};
+static struct PyModuleDef examplemodule = {
+ PyModuleDef_HEAD_INIT,
+ "example",
+ "example module doc string",
+ -1,
+ example_methods,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+};
+
PyMODINIT_FUNC
-initexample(void)
+PyInit_example(void)
{
- Py_InitModule("example", example_methods);
+ return PyModule_Create(&examplemodule);
}