Kaydet (Commit) 22aa6447 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Patch #103523, to make mpz module compile with Cygwin

üst 3cbdbfbf
...@@ -1584,7 +1584,7 @@ static PyNumberMethods mpz_as_number = { ...@@ -1584,7 +1584,7 @@ static PyNumberMethods mpz_as_number = {
}; };
static PyTypeObject MPZtype = { static PyTypeObject MPZtype = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"mpz", /*tp_name*/ "mpz", /*tp_name*/
sizeof(mpzobject), /*tp_size*/ sizeof(mpzobject), /*tp_size*/
...@@ -1716,6 +1716,7 @@ initmpz(void) ...@@ -1716,6 +1716,7 @@ initmpz(void)
#endif /* def MPZ_DEBUG */ #endif /* def MPZ_DEBUG */
mp_set_memory_functions( mp_allocate, mp_reallocate, mp_free ); mp_set_memory_functions( mp_allocate, mp_reallocate, mp_free );
MPZtype.ob_type = &PyType_Type;
module = Py_InitModule("mpz", mpz_functions); module = Py_InitModule("mpz", mpz_functions);
/* create some frequently used constants */ /* create some frequently used constants */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment