mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 14:00:38 +02:00
Merged revision(s) 55241 #9b0e7b0b35 from trunk:
LazUtils: Fix compilation of utf8process.pp on Darwin with fpc trunk. ........ git-svn-id: branches/fixes_1_8@55255 -
This commit is contained in:
parent
417085fa70
commit
b20a1fbbac
@ -168,7 +168,11 @@ begin
|
|||||||
mib[0] := CTL_HW;
|
mib[0] := CTL_HW;
|
||||||
mib[1] := HW_NCPU;
|
mib[1] := HW_NCPU;
|
||||||
len := sizeof(t);
|
len := sizeof(t);
|
||||||
|
{$if FPC_FULLVERSION >= 30101}
|
||||||
|
fpsysctl(@mib, 2, @t, @len, Nil, 0);
|
||||||
|
{$else}
|
||||||
fpsysctl(pchar(@mib), 2, @t, @len, Nil, 0);
|
fpsysctl(pchar(@mib), 2, @t, @len, Nil, 0);
|
||||||
|
{$endif}
|
||||||
Result:=t;
|
Result:=t;
|
||||||
end;
|
end;
|
||||||
{$ELSEIF defined(linux)}
|
{$ELSEIF defined(linux)}
|
||||||
|
Loading…
Reference in New Issue
Block a user