Prechádzať zdrojové kódy

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

git-svn-id: trunk@22149 -
florian 13 rokov pred
rodič
commit
62eed2e3f2
2 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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}
     function trunc(c : currency) : int64;
+{$ifndef FPUNONE}
     function round(c : currency) : int64;
+{$endif FPUNONE}
 {$ifndef cpujvm}
     function trunc(c : comp) : int64;
     function round(c : comp) : int64;

+ 2 - 1
rtl/inc/gencurr.inc

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