summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-14 18:23:17 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-14 18:23:17 +0100
commit8fc5914ad77601c0b444337bd95617ec5c9a9006 (patch)
tree7f5685f4db93d4fc48642725b8b6e41cc0fc1953 /Objective-C
parent4714129a8ba875f082f522c07c039fba12395ded (diff)
Disable manual NSProcessInfo initialisation on GNUstep systems.
darcs-hash:07683de74a6675f89f20fdc933a1c0eeadb60725
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/libobjcl.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index 06620e2..8c544f8 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -96,9 +96,15 @@ objcl_initialise_runtime (void)
TRACE (@"Initialise runtime.");
objcl_autorelease_pool = [[NSAutoreleasePool alloc] init];
+#if 0
#ifndef __NEXT_RUNTIME__
-#if defined(GS_FAKE_MAIN) || defined(GS_PASS_ARGUMENTS) \
+#if defined(GS_FAKE_MAIN) || defined(GS_PASS_ARGUMENTS) \
|| defined(LIB_FOUNDATION_LIBRARY)
+ /* FIXME: The following is disabled because it makes [NSBundle
+ allBundles] fail with an NSInternalInconsistencyException.
+ This may be because we lie about the executable path.
+
+ Then again, it may be completely unneeded, anyway. */
TRACE (@"Initialise environment.");
if (!process)
@@ -113,6 +119,7 @@ objcl_initialise_runtime (void)
}
#endif
#endif
+#endif
TRACE (@"Allocate exceptions.");
objcl_oom_exception = [NSException exceptionWithName: @"MLKOutOfMemoryException"