mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add BeOS support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15366 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a5ac75b53f
commit
6bffc50a51
3 changed files with 26 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
2002-12-28 Kelvin <kelvin@xbar.org>
|
||||
|
||||
* Source/NSPage.m: Add BeOS support.
|
||||
* Source/NSProcessInfo.m ([NSProcessInfo -operatingSystem]): Idem
|
||||
(Also added solaris (fedor@gnu.org)).
|
||||
|
||||
2002-12-24 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -50,7 +50,8 @@ enum {
|
|||
NSSunOSOperatingSystem,
|
||||
NSOSF1OperatingSystem,
|
||||
NSGNULinuxOperatingSystem = 100,
|
||||
NSBSDOperatingSystem
|
||||
NSBSDOperatingSystem,
|
||||
NSBeOperatingSystem
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
@ -515,6 +515,16 @@ _gnu_noobjc_free_vars(void)
|
|||
if (self == [NSProcessInfo class])
|
||||
_gnu_process_args(__argc, __argv, _environ);
|
||||
}
|
||||
#elif defined(__BEOS__)
|
||||
|
||||
extern int __libc_argc;
|
||||
extern char **__libc_argv;
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [NSProcessInfo class])
|
||||
_gnu_process_args(__libc_argc, __libc_argv, environ);
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
#ifndef GS_PASS_ARGUMENTS
|
||||
|
@ -696,6 +706,18 @@ int main(int argc, char *argv[], char *env[])
|
|||
{
|
||||
os = NSBSDOperatingSystem;
|
||||
}
|
||||
else if ([n isEqualToString: @"beos"] == YES)
|
||||
{
|
||||
os = NSBeOperatingSystem;
|
||||
}
|
||||
else if ([n hasPrefix: @"solaris"] == YES)
|
||||
{
|
||||
os = NSSolarisOperatingSystem;
|
||||
}
|
||||
else if ([n hasPrefix: @"hpux"] == YES)
|
||||
{
|
||||
os = NSHPUXOperatingSystem;
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Unable to determine O/S ... assuming GNU/Linux");
|
||||
|
|
Loading…
Reference in a new issue