mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Add darwin
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_6_0@16170 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
23c248680a
commit
bbc5dcf858
4 changed files with 15 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-03-14 Adam Fedor <fedor@Eldorado.local.>
|
||||
|
||||
* Testing/nsarray.m (compare): Un-nest function.
|
||||
|
||||
* Source/NSProcessInfo.m (-operatingSystem): Add darwin.
|
||||
|
||||
2003-03-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSFileManager.m: ([-isDeletableFileAtPath:]) Fix for the
|
||||
|
|
|
@ -77,9 +77,6 @@ endif
|
|||
ifeq ($(GNUSTEP_TARGET_OS),cygwin)
|
||||
libgnustep-base_LIBRARIES_DEPEND_UPON += -lobjc
|
||||
endif
|
||||
ifeq ($(findstring darwin, $(GNUSTEP_TARGET_OS)), darwin)
|
||||
libgnustep-base_LIBRARIES_DEPEND_UPON += -flat_namespace
|
||||
endif
|
||||
ifeq ($(shared),yes)
|
||||
libgnustep-base_LIBRARIES_DEPEND_UPON += $(CONFIG_SYSTEM_LIBS)
|
||||
endif
|
||||
|
|
|
@ -749,6 +749,10 @@ int main(int argc, char *argv[], char *env[])
|
|||
{
|
||||
os = NSBeOperatingSystem;
|
||||
}
|
||||
else if ([n hasPrefix: @"darwin"] == YES)
|
||||
{
|
||||
os = NSMACHOperatingSystem;
|
||||
}
|
||||
else if ([n hasPrefix: @"solaris"] == YES)
|
||||
{
|
||||
os = NSSolarisOperatingSystem;
|
||||
|
|
|
@ -4,6 +4,11 @@
|
|||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSException.h>
|
||||
|
||||
int compare(id elem1, id elem2, void* context)
|
||||
{
|
||||
return (int)[elem1 performSelector:@selector(compare:) withObject:elem2];
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
|
@ -129,11 +134,6 @@ main()
|
|||
}
|
||||
|
||||
{
|
||||
int compare(id elem1, id elem2, void* context)
|
||||
{
|
||||
return (int)[elem1 performSelector:@selector(compare:) withObject:elem2];
|
||||
}
|
||||
|
||||
// Deriving new arrays
|
||||
NSRange r = NSMakeRange(0, 3);
|
||||
|
||||
|
|
Loading…
Reference in a new issue