summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-12-14 23:03:07 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-12-14 23:03:07 (GMT)
commit9635f33e5b64495cc1ba18307f0b91a303e7e103 (patch)
treee78f99a71336ab7d3a31d00252a8635ed6082011 /Mac
parent1b8bd94f73d5da6e79b4a44c110a5ad6f9207086 (diff)
downloadcpython-9635f33e5b64495cc1ba18307f0b91a303e7e103.zip
cpython-9635f33e5b64495cc1ba18307f0b91a303e7e103.tar.gz
cpython-9635f33e5b64495cc1ba18307f0b91a303e7e103.tar.bz2
Quick patch to allow building with Universal Headers 3.4.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/dlg/_Dlgmodule.c21
-rw-r--r--Mac/Modules/mlte/_Mltemodule.c4
2 files changed, 2 insertions, 23 deletions
diff --git a/Mac/Modules/dlg/_Dlgmodule.c b/Mac/Modules/dlg/_Dlgmodule.c
index 8a0dd4f..d21f46c 100644
--- a/Mac/Modules/dlg/_Dlgmodule.c
+++ b/Mac/Modules/dlg/_Dlgmodule.c
@@ -876,23 +876,6 @@ static PyObject *DlgObj_GetDialogPort(DialogObject *_self, PyObject *_args)
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[] = {
{"DrawDialog", (PyCFunction)DlgObj_DrawDialog, 1,
"() -> None"},
@@ -975,10 +958,6 @@ static PyMethodDef DlgObj_methods[] = {
{"GetDialogPort", (PyCFunction)DlgObj_GetDialogPort, 1,
"() -> (CGrafPtr _rv)"},
-#if !TARGET_API_MAC_CARBON
- {"SetGrafPortOfDialog", (PyCFunction)DlgObj_SetGrafPortOfDialog, 1,
- "() -> None"},
-#endif
{NULL, NULL, 0}
};
diff --git a/Mac/Modules/mlte/_Mltemodule.c b/Mac/Modules/mlte/_Mltemodule.c
index c0819d2..a72ea0e 100644
--- a/Mac/Modules/mlte/_Mltemodule.c
+++ b/Mac/Modules/mlte/_Mltemodule.c
@@ -241,7 +241,7 @@ static PyObject *TXNObj_TXNClick(TXNObjectObject *_self, PyObject *_args)
return _res;
}
-#if !TARGET_API_MAC_OSX
+#if 0
static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
{
@@ -1043,7 +1043,7 @@ static PyMethodDef TXNObj_methods[] = {
{"TXNClick", (PyCFunction)TXNObj_TXNClick, 1,
"(EventRecord iEvent) -> None"},
-#if !TARGET_API_MAC_OSX
+#if 0
{"TXNTSMCheck", (PyCFunction)TXNObj_TXNTSMCheck, 1,
"(EventRecord iEvent) -> (Boolean _rv)"},
#endif