more missing includes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29775 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-02-26 08:56:26 +00:00
parent d6ded208d4
commit 50980012ec
5 changed files with 18 additions and 2 deletions

View file

@ -61,6 +61,7 @@
#import "Foundation/NSException.h"
#import "Foundation/NSFileManager.h"
#import "Foundation/NSRunLoop.h"
#import "Foundation/NSString.h"
#import "Foundation/NSTimer.h"
#import "Foundation/NSTimeZone.h"
#import "Foundation/NSURL.h"
@ -2563,7 +2564,7 @@ loadEntityFunction(void *ctx,
}
if (found == nil)
{
#ifdef GNUSTEP
#ifndef NeXT_Foundation_LIBRARY
found = [NSBundle pathForLibraryResource: name
ofType: @"dtd"
inDirectory: @"DTDs"];
@ -2605,9 +2606,16 @@ loadEntityFunction(void *ctx,
}
if (file == nil)
{
#ifndef NeXT_Foundation_LIBRARY
file = [NSBundle pathForLibraryResource: local
ofType: @""
inDirectory: @"DTDs"];
#else
file = [[NSBundle bundleForClass: [GSXMLNode class]
pathForResource: name
ofType: @"dtd"
inDirectory: @"DTDs"];
#endif
}
}
}