Fix compilation issues
This commit is contained in:
@@ -142,7 +142,7 @@ String ApplePlatform::GetSystemName()
|
|||||||
Version ApplePlatform::GetSystemVersion()
|
Version ApplePlatform::GetSystemVersion()
|
||||||
{
|
{
|
||||||
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
|
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
|
||||||
return Version(version.major, version.majorVersion, version.minorVersion, version.patchVersion);
|
return Version(version.majorVersion, version.minorVersion, version.patchVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
CPUInfo ApplePlatform::GetCPUInfo()
|
CPUInfo ApplePlatform::GetCPUInfo()
|
||||||
|
|||||||
@@ -2677,7 +2677,7 @@ void LinuxPlatform::Exit()
|
|||||||
|
|
||||||
String LinuxPlatform::GetSystemName()
|
String LinuxPlatform::GetSystemName()
|
||||||
{
|
{
|
||||||
Dictionary<String, String> configs = LoadConfigFile(TEXT("/etc/os-release"));
|
Dictionary<String, String> configs = Impl::LoadConfigFile(TEXT("/etc/os-release"));
|
||||||
String str;
|
String str;
|
||||||
if (configs.TryGet(TEXT("NAME"), str))
|
if (configs.TryGet(TEXT("NAME"), str))
|
||||||
return str;
|
return str;
|
||||||
@@ -2686,7 +2686,7 @@ String LinuxPlatform::GetSystemName()
|
|||||||
|
|
||||||
Version LinuxPlatform::GetSystemVersion()
|
Version LinuxPlatform::GetSystemVersion()
|
||||||
{
|
{
|
||||||
Dictionary<String, String> configs = LoadConfigFile(TEXT("/etc/os-release"));
|
Dictionary<String, String> configs = Impl::LoadConfigFile(TEXT("/etc/os-release"));
|
||||||
String str;
|
String str;
|
||||||
Version version;
|
Version version;
|
||||||
if (configs.TryGet(TEXT("VERSION_ID"), str) && !Version::Parse(str, &version))
|
if (configs.TryGet(TEXT("VERSION_ID"), str) && !Version::Parse(str, &version))
|
||||||
|
|||||||
Reference in New Issue
Block a user