* move the FUTEX down so uses doesn't get in the way

git-svn-id: trunk@7974 -
This commit is contained in:
Almindor 2007-07-07 09:23:18 +00:00
parent 5baca0cfd3
commit f71c886752

View File

@ -228,11 +228,6 @@ function epoll_wait(epfd: cint; events: pepoll_event; maxevents, timeout: cint):
implementation
// FUTEX_OP is a macro, doesn't exist in libC as function
function FUTEX_OP(op, oparg, cmp, cmparg: cint): cint; {$ifdef SYSTEMINLINE}inline;{$endif}
begin
FUTEX_OP := ((op and $F) shl 28) or ((cmp and $F) shl 24) or ((oparg and $FFF) shl 12) or (cmparg and $FFF);
end;
{$ifndef FPC_USE_LIBC}
uses Syscall;
@ -260,4 +255,11 @@ begin
end;
{$endif}
// FUTEX_OP is a macro, doesn't exist in libC as function
function FUTEX_OP(op, oparg, cmp, cmparg: cint): cint; {$ifdef SYSTEMINLINE}inline;{$endif}
begin
FUTEX_OP := ((op and $F) shl 28) or ((cmp and $F) shl 24) or ((oparg and $FFF) shl 12) or (cmparg and $FFF);
end;
end.