summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-11-01 14:00:19 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-11-01 14:00:19 (GMT)
commit01a9462787c0efcd0cfef33407e99f6ef6531eb2 (patch)
treeaca0395b73edc31d833ebd5dcafddfa2d6987ec5 /Mac
parentb73efee62eaf8ba2733973396fbbdf0237631532 (diff)
downloadcpython-01a9462787c0efcd0cfef33407e99f6ef6531eb2.zip
cpython-01a9462787c0efcd0cfef33407e99f6ef6531eb2.tar.gz
cpython-01a9462787c0efcd0cfef33407e99f6ef6531eb2.tar.bz2
Under MachO-Python unconditionally import macfsn.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/macfsmodule.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index f16cd36..61127aa 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -39,8 +39,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "getapplbycreator.h"
+#ifndef TARGET_API_MAC_OSX
#include "pythonresources.h"
extern PyMac_PrefRecord PyMac_options;
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern int _PyMac_GetFSSpec(PyObject *, FSSpec *);
@@ -1218,7 +1220,9 @@ PyObject *PyMac_BuildFSSpec(FSSpec *v)
static void
PyMac_InstallNavServicesForSF(void)
{
+#ifndef TARGET_API_MAC_OSX
if ( !PyMac_options.nonavservice ) {
+#endif
PyObject *m = PyImport_ImportModule("macfsn");
if ( m == NULL ) {
@@ -1232,7 +1236,9 @@ PyMac_InstallNavServicesForSF(void)
}
PyErr_Clear();
}
+#ifndef TARGET_API_MAC_OSX
}
+#endif
}