summaryrefslogtreecommitdiff
path: root/Mac
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2008-06-06 21:31:33 +0000
committerRonald Oussoren <ronaldoussoren@mac.com>2008-06-06 21:31:33 +0000
commit0599212f0bf97ccc5d1956d58c0829358ff89754 (patch)
tree017d80ab34f7f201b9c7c3bb4be5e9f3301a1ac6 /Mac
parent99abd22818ee29a63d4bc27d3da3df59ca93b285 (diff)
downloadcpython-0599212f0bf97ccc5d1956d58c0829358ff89754.tar.gz
Fix build issue on OSX 10.4
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/MacOS.c3
-rw-r--r--Mac/Modules/ae/_AEmodule.c4
-rw-r--r--Mac/Modules/file/_Filemodule.c8
3 files changed, 11 insertions, 4 deletions
diff --git a/Mac/Modules/MacOS.c b/Mac/Modules/MacOS.c
index 99e531b21f..9148fe0f76 100644
--- a/Mac/Modules/MacOS.c
+++ b/Mac/Modules/MacOS.c
@@ -30,6 +30,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <Carbon/Carbon.h>
#include <ApplicationServices/ApplicationServices.h>
+#ifndef HAVE_MACOS105_SDK
+typedef SInt16 FSIORefNum;
+#endif
static PyObject *MacOS_Error; /* Exception MacOS.Error */
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c
index dd154c79f3..e12a30c1b2 100644
--- a/Mac/Modules/ae/_AEmodule.c
+++ b/Mac/Modules/ae/_AEmodule.c
@@ -7,6 +7,10 @@
#include "pymactoolbox.h"
+#ifndef HAVE_OSX105_SDK
+typedef SInt32 SRefCon;
+#endif
+
/* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
PyErr_SetString(PyExc_NotImplementedError, \
diff --git a/Mac/Modules/file/_Filemodule.c b/Mac/Modules/file/_Filemodule.c
index 8ff007f81f..352ef640da 100644
--- a/Mac/Modules/file/_Filemodule.c
+++ b/Mac/Modules/file/_Filemodule.c
@@ -7,6 +7,10 @@
#include "pymactoolbox.h"
+#ifndef HAVE_MACOS105_SDK
+typedef SInt16 FSIORefNum;
+#endif
+
/* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
PyErr_SetString(PyExc_NotImplementedError, \
@@ -193,10 +197,6 @@ static int FSCatalogInfo_Convert(PyObject *v, FSCatalogInfo *p_itself)
static void FSCatalogInfo_dealloc(FSCatalogInfoObject *self)
{
/* Cleanup of self->ob_itself goes here */
- FSPermissionInfo* info = (FSPermissionInfo*)&(self->ob_itself.permissions);
- if (info->fileSec != NULL) {
- CFRelease(info->fileSec);
- }
self->ob_type->tp_free((PyObject *)self);
}