tweak for OSX build

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29908 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-03-12 13:55:11 +00:00
parent 3d40713794
commit 1cf58483e2
3 changed files with 12 additions and 4 deletions

View file

@ -26,7 +26,7 @@
#import "common.h"
#import "Foundation/NSThread.h"
#if defined(__APPLE__)
#if defined(NeXT_Foundation_LIBRARY)
/* These functions are in NSThread.m in the base library.
*/

View file

@ -29,7 +29,9 @@
*/
#import "common.h"
#ifndef NeXT_Foundation_LIBRARY
#if defined(NeXT_Foundation_LIBRARY)
#import <Foundation/Foundation.h>
#else
#import "Foundation/NSArray.h"
#import "Foundation/NSBundle.h"
#import "Foundation/NSDictionary.h"
@ -37,8 +39,6 @@
#import "Foundation/NSException.h"
#import "Foundation/NSLock.h"
#import "Foundation/NSPathUtilities.h"
#else
#import <Foundation/Foundation.h>
#endif
#import "GNUstepBase/GSLock.h"

View file

@ -6,6 +6,14 @@
#import "config.h"
/* If this is included in a file in the Additions subdirectory, and we are
* building for use with the NeXT/Apple Foundation, then we need to import
* the native headers in preference to any of our own.
*/
#if defined(NeXT_Foundation_LIBRARY)
#import <Foundation/Foundation.h>
#endif
/* GNUstepBase/GSConfig.h includes <GNUstepBase/preface.h> so
* we import local versions first.
*/