From b8fca3dc09c09dc6d075d89b2549a79f028ea9bf Mon Sep 17 00:00:00 2001 From: fedor Date: Thu, 3 Sep 1998 14:35:49 +0000 Subject: [PATCH] Better configuration, gui will compile without DPS git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2954 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSBundle.m | 4 ++++ Source/StdioStream.m | 2 ++ Testing/GNUmakefile | 1 - Testing/tcpport-server.m | 2 +- 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 54f1548f1..8c9c67b11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 31 16:28:58 1998 Adam Fedor + + * src/NSBundle.m (+mainBundle:): Remove *_obj directory to + find main bundle path. + Wed Sep 02 14:15:00 1998 Richard Frith-Macdonald * src/Coder.m: ([-decodeObject:]) fixed to autorelease as it should. diff --git a/Source/NSBundle.m b/Source/NSBundle.m index 4e21be48d..9722f337c 100644 --- a/Source/NSBundle.m +++ b/Source/NSBundle.m @@ -280,6 +280,10 @@ _bundle_load_callback(Class theClass, Category *theCategory) s = [path lastPathComponent]; if ([s isEqual: gnustep_target_cpu]) path = [path stringByDeletingLastPathComponent]; + /* object dir */ + s = [path lastPathComponent]; + if ([s hasSuffix: @"_obj"]) + path = [path stringByDeletingLastPathComponent]; NSDebugLLog(@"NSBundle", @"(NSBundle): Found main in %@\n", path); /* We do alloc and init separately so initWithPath: knows diff --git a/Source/StdioStream.m b/Source/StdioStream.m index 77d2a12a9..131791d51 100644 --- a/Source/StdioStream.m +++ b/Source/StdioStream.m @@ -21,7 +21,9 @@ Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifndef _REENTRANT #define _REENTRANT +#endif #include #include diff --git a/Testing/GNUmakefile b/Testing/GNUmakefile index fd01607bc..e8c11d2ca 100644 --- a/Testing/GNUmakefile +++ b/Testing/GNUmakefile @@ -37,7 +37,6 @@ TEST_TOOL_NAME = \ test01 \ test02 \ heap \ -nxst \ prepend \ pipes \ server \ diff --git a/Testing/tcpport-server.m b/Testing/tcpport-server.m index 4d17858fe..e1c7f543b 100644 --- a/Testing/tcpport-server.m +++ b/Testing/tcpport-server.m @@ -1,7 +1,7 @@ #include #include -#include #include +#include #include id announce_new_connection (id notification)