mirror of https://github.com/python/cpython.git
Quick patch to allow building with Universal Headers 3.4.
This commit is contained in:
parent
1b8bd94f73
commit
9635f33e5b
|
@ -876,23 +876,6 @@ static PyObject *DlgObj_GetDialogPort(DialogObject *_self, PyObject *_args)
|
||||||
return _res;
|
return _res;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !TARGET_API_MAC_CARBON
|
|
||||||
|
|
||||||
static PyObject *DlgObj_SetGrafPortOfDialog(DialogObject *_self, PyObject *_args)
|
|
||||||
{
|
|
||||||
PyObject *_res = NULL;
|
|
||||||
#ifndef SetGrafPortOfDialog
|
|
||||||
PyMac_PRECHECK(SetGrafPortOfDialog);
|
|
||||||
#endif
|
|
||||||
if (!PyArg_ParseTuple(_args, ""))
|
|
||||||
return NULL;
|
|
||||||
SetGrafPortOfDialog(_self->ob_itself);
|
|
||||||
Py_INCREF(Py_None);
|
|
||||||
_res = Py_None;
|
|
||||||
return _res;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static PyMethodDef DlgObj_methods[] = {
|
static PyMethodDef DlgObj_methods[] = {
|
||||||
{"DrawDialog", (PyCFunction)DlgObj_DrawDialog, 1,
|
{"DrawDialog", (PyCFunction)DlgObj_DrawDialog, 1,
|
||||||
"() -> None"},
|
"() -> None"},
|
||||||
|
@ -975,10 +958,6 @@ static PyMethodDef DlgObj_methods[] = {
|
||||||
{"GetDialogPort", (PyCFunction)DlgObj_GetDialogPort, 1,
|
{"GetDialogPort", (PyCFunction)DlgObj_GetDialogPort, 1,
|
||||||
"() -> (CGrafPtr _rv)"},
|
"() -> (CGrafPtr _rv)"},
|
||||||
|
|
||||||
#if !TARGET_API_MAC_CARBON
|
|
||||||
{"SetGrafPortOfDialog", (PyCFunction)DlgObj_SetGrafPortOfDialog, 1,
|
|
||||||
"() -> None"},
|
|
||||||
#endif
|
|
||||||
{NULL, NULL, 0}
|
{NULL, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@ static PyObject *TXNObj_TXNClick(TXNObjectObject *_self, PyObject *_args)
|
||||||
return _res;
|
return _res;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !TARGET_API_MAC_OSX
|
#if 0
|
||||||
|
|
||||||
static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
|
static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
|
||||||
{
|
{
|
||||||
|
@ -1043,7 +1043,7 @@ static PyMethodDef TXNObj_methods[] = {
|
||||||
{"TXNClick", (PyCFunction)TXNObj_TXNClick, 1,
|
{"TXNClick", (PyCFunction)TXNObj_TXNClick, 1,
|
||||||
"(EventRecord iEvent) -> None"},
|
"(EventRecord iEvent) -> None"},
|
||||||
|
|
||||||
#if !TARGET_API_MAC_OSX
|
#if 0
|
||||||
{"TXNTSMCheck", (PyCFunction)TXNObj_TXNTSMCheck, 1,
|
{"TXNTSMCheck", (PyCFunction)TXNObj_TXNTSMCheck, 1,
|
||||||
"(EventRecord iEvent) -> (Boolean _rv)"},
|
"(EventRecord iEvent) -> (Boolean _rv)"},
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue