mirror of https://github.com/python/cpython.git
Support building this as a DLL under Cygwin.
This commit is contained in:
parent
fc5ce61abd
commit
6915c4d0a8
|
@ -1440,7 +1440,7 @@ PyCursesWindow_GetAttr(PyCursesWindowObject *self, char *name)
|
|||
/* -------------------------------------------------------*/
|
||||
|
||||
PyTypeObject PyCursesWindow_Type = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /*ob_size*/
|
||||
"curses window", /*tp_name*/
|
||||
sizeof(PyCursesWindowObject), /*tp_basicsize*/
|
||||
|
@ -2431,12 +2431,15 @@ static PyMethodDef PyCurses_methods[] = {
|
|||
|
||||
/* Initialization function for the module */
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
init_curses(void)
|
||||
{
|
||||
PyObject *m, *d, *v, *c_api_object;
|
||||
static void *PyCurses_API[PyCurses_API_pointers];
|
||||
|
||||
/* Initialize object type */
|
||||
PyCursesWindow_Type.ob_type = &PyType_Type;
|
||||
|
||||
/* Initialize the C API pointer array */
|
||||
PyCurses_API[0] = (void *)&PyCursesWindow_Type;
|
||||
PyCurses_API[1] = (void *)func_PyCursesSetupTermCalled;
|
||||
|
|
Loading…
Reference in New Issue