mirror of
https://github.com/python/cpython.git
synced 2025-11-10 10:32:04 +00:00
Fix build issue on OSX 10.4
This commit is contained in:
parent
3f67c43f78
commit
0d236eb05a
6 changed files with 80 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue