mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add macro detection for MacOS version 10.1 to 10.6 and make GS_API_LATEST the last in priority.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35365 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6f9b24af1e
commit
a16dbfd544
2 changed files with 35 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-08-08 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Tools/AGSParser.m:
|
||||
Add macro detection for MacOS version 10.1 to 10.6 and make
|
||||
GS_API_LATEST the last in priority.
|
||||
|
||||
2012-08-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSString.m: Simplify/remove upper and lower case conversion
|
||||
|
|
|
@ -3820,10 +3820,6 @@ fail:
|
|||
{
|
||||
str = @"000000";
|
||||
}
|
||||
else if ([str isEqualToString: @"GS_API_LATEST"] == YES)
|
||||
{
|
||||
str = @"999999";
|
||||
}
|
||||
else if ([str isEqualToString: @"GS_API_OSSPEC"] == YES)
|
||||
{
|
||||
str = @"010000";
|
||||
|
@ -3836,6 +3832,35 @@ fail:
|
|||
{
|
||||
str = @"100000";
|
||||
}
|
||||
else if ([str isEqualToString: @"MAC_OS_X_VERSION_10_1"] == YES)
|
||||
{
|
||||
str = @"101000";
|
||||
}
|
||||
else if ([str isEqualToString: @"MAC_OS_X_VERSION_10_2"] == YES)
|
||||
{
|
||||
str = @"102000";
|
||||
}
|
||||
else if ([str isEqualToString: @"MAC_OS_X_VERSION_10_3"] == YES)
|
||||
{
|
||||
str = @"103000";
|
||||
}
|
||||
else if ([str isEqualToString: @"MAC_OS_X_VERSION_10_4"] == YES)
|
||||
{
|
||||
str = @"104000";
|
||||
}
|
||||
else if ([str isEqualToString: @"MAC_OS_X_VERSION_10_5"] == YES)
|
||||
{
|
||||
str = @"105000";
|
||||
}
|
||||
else if ([str isEqualToString: @"MAC_OS_X_VERSION_10_6"] == YES)
|
||||
{
|
||||
str = @"106000";
|
||||
}
|
||||
else if ([str isEqualToString: @"GS_API_LATEST"] == YES)
|
||||
{
|
||||
str = @"999999";
|
||||
}
|
||||
|
||||
i = [str intValue];
|
||||
return [NSString stringWithFormat: @"%d.%d.%d",
|
||||
i/10000, (i/100)%100, i%100];
|
||||
|
|
Loading…
Reference in a new issue