Browse Source

* function round(c : currency) : int64; requires the availability of an fpu

git-svn-id: trunk@22149 -
florian 13 years ago
parent
commit
62eed2e3f2
2 changed files with 4 additions and 1 deletions
  1. 2 0
      rtl/inc/currh.inc
  2. 2 1
      rtl/inc/gencurr.inc

+ 2 - 0
rtl/inc/currh.inc

@@ -15,7 +15,9 @@
 
 
 {$ifdef FPC_CURRENCY_IS_INT64}
 {$ifdef FPC_CURRENCY_IS_INT64}
     function trunc(c : currency) : int64;
     function trunc(c : currency) : int64;
+{$ifndef FPUNONE}
     function round(c : currency) : int64;
     function round(c : currency) : int64;
+{$endif FPUNONE}
 {$ifndef cpujvm}
 {$ifndef cpujvm}
     function trunc(c : comp) : int64;
     function trunc(c : comp) : int64;
     function round(c : comp) : int64;
     function round(c : comp) : int64;

+ 2 - 1
rtl/inc/gencurr.inc

@@ -29,7 +29,7 @@
         result := c
         result := c
       end;
       end;
 
 
-
+{$ifndef FPUNONE}
     function round(c : currency) : int64;
     function round(c : currency) : int64;
       var
       var
         rem, absrem: currency;
         rem, absrem: currency;
@@ -48,6 +48,7 @@
           else
           else
             dec(result);
             dec(result);
       end;
       end;
+{$endif FPUNONE}
 
 
 
 
 {$ifndef cpujvm}
 {$ifndef cpujvm}