diff options
author | Guido van Rossum <guido@python.org> | 2001-01-10 21:03:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-10 21:03:32 (GMT) |
commit | 5a53019b0d4780b270c0c8027e0e66b7183fb661 (patch) | |
tree | 301ea469ac53ab9d55871b315ae993b0fd25a7dd /Modules/rotormodule.c | |
parent | 4c3f57cf05c9d7ea5b1ff681703b95ce034f16c3 (diff) | |
download | cpython-5a53019b0d4780b270c0c8027e0e66b7183fb661.zip cpython-5a53019b0d4780b270c0c8027e0e66b7183fb661.tar.gz cpython-5a53019b0d4780b270c0c8027e0e66b7183fb661.tar.bz2 |
Part of SF patch #102409 by jlt63 to support building these modules
under CYGWIN as shared libraries (DLLs).
Diffstat (limited to 'Modules/rotormodule.c')
-rw-r--r-- | Modules/rotormodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c index 9f58ff2..cc25924 100644 --- a/Modules/rotormodule.c +++ b/Modules/rotormodule.c @@ -576,7 +576,7 @@ rotorobj_getattr(Rotorobj *s, char *name) statichere PyTypeObject Rotor_Type = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ "rotor", /*tp_name*/ sizeof(Rotorobj), /*tp_size*/ @@ -619,5 +619,6 @@ rotor_methods[] = { DL_EXPORT(void) initrotor(void) { + Rotor_Type.ob_type = &PyType_Type; (void)Py_InitModule("rotor", rotor_methods); } |