Support building this as a DLL under Cygwin.

This commit is contained in:
Guido van Rossum 2001-01-19 00:28:08 +00:00
parent fc5ce61abd
commit 6915c4d0a8
1 changed files with 5 additions and 2 deletions

View File

@ -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;