Added an error message when using FSRef objects on platforms that don't

support them.
This commit is contained in:
Jack Jansen 2001-11-06 15:57:26 +00:00
parent df222d2691
commit 2bf52daedd
1 changed files with 1 additions and 0 deletions

View File

@ -1131,6 +1131,7 @@ int
PyMac_GetFSRef(PyObject *v, FSRef *fsr)
{
#if TARGET_API_MAC_OS8
PyErr_SetString(PyExc_TypeError, "FSRef objects not supported on this platform");
return 0;
#else
/* If it's an FSRef we're also okay. */