Browse Source

* check used fpu type properly

git-svn-id: trunk@6786 -
florian 18 years ago
parent
commit
fd6fdfe896
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/arm/math.inc

+ 2 - 2
rtl/arm/math.inc

@@ -14,7 +14,7 @@
 
  **********************************************************************}
 
-{$ifndef WINCE}
+{$if defined(FPUFPA) or defined(FPUFPA10) or defined(FPUFPA11)}
     {$define FPC_SYSTEM_HAS_ABS}
     function fpc_abs_real(d : ValReal) : ValReal;compilerproc;
     begin
@@ -36,6 +36,7 @@
       runerror(207);
       result:=0;
     end;
+{$endif}
     (* atn isn't supported by the linux fpe it seems
     {$define FPC_SYSTEM_HAS_ARCTAN}
     function fpc_arctan_real(d : extended) : extended;compilerproc;
@@ -72,4 +73,3 @@
       result:=0;
     end;
     *)
-{$endif WINCE}