portability bugfixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32769 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-04-04 10:57:49 +00:00
parent 3e0fcb2b73
commit c078d97164
5 changed files with 85 additions and 28 deletions

View file

@ -845,9 +845,14 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
{
if (self == [NSBundle class])
{
NSDictionary *env;
NSString *str;
extern const char *GSPathHandling(const char *);
const char *mode;
NSDictionary *env;
NSString *str;
/* Ensure we do 'right' path handling while initializing core paths.
*/
mode = GSPathHandling("right");
_emptyTable = RETAIN([NSDictionary dictionary]);
/* Initialise manager here so it's thread-safe.
@ -935,6 +940,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
objc_close_main_module(handle);
_loadingBundle = nil;
#endif
GSPathHandling(mode);
}
}