[Py3] Fix C module declaration for Py2.

This commit is contained in:
Raphaël Barrois
2013-11-14 01:29:23 +01:00
committed by Christian Heimes
parent 489a4a4618
commit 06c3a59102

View File

@@ -11,7 +11,11 @@
#include "LDAPObject.h"
#if PY_MAJOR_VERSION >= 3
PyMODINIT_FUNC PyInit__ldap(void);
#else
PyMODINIT_FUNC init_ldap(void);
#endif
/* dummy module methods */
@@ -23,7 +27,11 @@ static PyMethodDef methods[] = {
PyMODINIT_FUNC
#if PY_MAJOR_VERSION >= 3
PyInit__ldap()
#else
init_ldap()
#endif
{
PyObject *m, *d;