]> granicus.if.org Git - python/commitdiff
fix python 3 mod init function declaration (closes #26827)
authorBenjamin Peterson <benjamin@python.org>
Sat, 23 Apr 2016 06:43:10 +0000 (23:43 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sat, 23 Apr 2016 06:43:10 +0000 (23:43 -0700)
Doc/howto/cporting.rst

index d7a708630259e9aa0049af359f1daa1919515282..27e7e6f6e0d9a037bfd3cf213892ad22cb4cfb7e 100644 (file)
@@ -161,7 +161,7 @@ simple example demonstrates how. ::
 
    #define INITERROR return NULL
 
-   PyObject *
+   PyMODINIT_FUNC
    PyInit_myextension(void)
 
    #else