mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Be more sensible about when to use TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.
This commit is contained in:
parent
1bd0a712ad
commit
6e68a7e74f
4 changed files with 26 additions and 23 deletions
|
@ -84,11 +84,11 @@ int PyMac_FindCodeResourceModule(PyStringObject *, char *, char *); /* Test for
|
|||
PyObject * PyMac_LoadCodeResourceModule(char *, char *); /* Load 'PYD ' resource from file */
|
||||
struct filedescr *PyMac_FindModuleExtension(char *, size_t *, char *); /* Look for module in single folder */
|
||||
|
||||
#if !TARGET_API_MAC_CARBON
|
||||
#if TARGET_API_MAC_OS8
|
||||
int PyMac_GetDirectory(FSSpec *dirfss, char *prompt); /* Ask user for a directory */
|
||||
void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
|
||||
StandardFileReply *reply, char *prompt); /* Ask user for file, with prompt */
|
||||
#endif /* TARGET_API_MAC_CARBON */
|
||||
#endif /* TARGET_API_MAC_OS8 */
|
||||
|
||||
int PyMac_GetOSType(PyObject *, OSType *); /* argument parser for OSType */
|
||||
PyObject *PyMac_BuildOSType(OSType); /* Convert OSType to PyObject */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue