mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 13:08:49 +02:00
Fix three warnings when compiling with FPC_USE_LIBC.
osmacro.inc: * FpFstat, fpLstat and FpStat: correctly set the result value instead of relying on the result location being the same for cdecl functions as for register functions git-svn-id: trunk@29240 -
This commit is contained in:
parent
e2c546b26f
commit
01278e2800
@ -102,19 +102,19 @@ function __xmknod(__ver : cint; Pathname: PChar; Mode: mode_t; var Device: dev_t
|
||||
{$define FPC_HAS_BASEUNIX_STAT}
|
||||
function FpFstat(fd : cint; var sb : stat): cint;inline;
|
||||
begin
|
||||
__fxstat(_STAT_VER,fd,sb);
|
||||
FpFstat:=__fxstat(_STAT_VER,fd,sb);
|
||||
end;
|
||||
|
||||
|
||||
function fpLstat(path:pchar;Info:pstat):cint;inline;
|
||||
begin
|
||||
__lxstat(_STAT_VER,path,Info^);
|
||||
fpLstat:=__lxstat(_STAT_VER,path,Info^);
|
||||
end;
|
||||
|
||||
|
||||
function FpStat(path: pchar; var buf : stat): cint;inline;
|
||||
begin
|
||||
__xstat(_STAT_VER,path,buf);
|
||||
FpStat:=__xstat(_STAT_VER,path,buf);
|
||||
end;
|
||||
|
||||
{$ifndef fs32bit}
|
||||
|
Loading…
Reference in New Issue
Block a user