summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/OSATerminology.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/OSATerminology.c')
-rw-r--r--Mac/Modules/OSATerminology.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mac/Modules/OSATerminology.c b/Mac/Modules/OSATerminology.c
index 66fb969..e56a0db 100644
--- a/Mac/Modules/OSATerminology.c
+++ b/Mac/Modules/OSATerminology.c
@@ -11,6 +11,7 @@
#include <Carbon/Carbon.h>
+#ifndef __LP64__
static PyObject *
PyOSA_GetAppTerminology(PyObject* self, PyObject* args)
{
@@ -68,12 +69,14 @@ PyOSA_GetSysTerminology(PyObject* self, PyObject* args)
if (err) return PyMac_Error(err);
return Py_BuildValue("O&i", AEDesc_New, &theDesc, didLaunch);
}
+#endif /* !__LP64__ */
/*
* List of methods defined in the module
*/
static struct PyMethodDef OSATerminology_methods[] =
{
+#ifndef __LP64__
{"GetAppTerminology",
(PyCFunction) PyOSA_GetAppTerminology,
METH_VARARGS,
@@ -82,14 +85,14 @@ static struct PyMethodDef OSATerminology_methods[] =
(PyCFunction) PyOSA_GetSysTerminology,
METH_VARARGS,
"Get an applications system terminology, as an AEDesc object."},
+#endif /* !__LP64__ */
{NULL, (PyCFunction) NULL, 0, NULL}
};
-
void
initOSATerminology(void)
{
if (PyErr_WarnPy3k("In 3.x, OSATerminology is removed.", 1) < 0)
return;
Py_InitModule("OSATerminology", OSATerminology_methods);
-} \ No newline at end of file
+}