Browse Source

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

git-svn-id: trunk@7974 -
Almindor 18 years ago
parent
commit
f71c886752
1 changed files with 7 additions and 5 deletions
  1. 7 5
      rtl/linux/linux.pp

+ 7 - 5
rtl/linux/linux.pp

@@ -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.