2
0
Эх сурвалжийг харах

m68k-amiga: only compile softfpu code into system unit, when FPU_SOFT is defined

git-svn-id: trunk@33670 -
Károly Balogh 9 жил өмнө
parent
commit
7fff76d936

+ 5 - 4
rtl/amiga/system.pp

@@ -25,11 +25,11 @@ interface
 {$I systemh.inc}
 {$I systemh.inc}
 {$I osdebugh.inc}
 {$I osdebugh.inc}
 
 
-{$ifdef cpum68k}
+{$if defined(cpum68k) and defined(fpu_soft)}
 {$define fpc_softfpu_interface}
 {$define fpc_softfpu_interface}
 {$i softfpu.pp}
 {$i softfpu.pp}
 {$undef fpc_softfpu_interface}
 {$undef fpc_softfpu_interface}
-{$endif cpum68k}
+{$endif defined(cpum68k) and defined(fpu_soft)}
 
 
 const
 const
   LineEnding = #10;
   LineEnding = #10;
@@ -94,7 +94,8 @@ var
 
 
 implementation
 implementation
 
 
-{$ifdef cpum68k}
+{$if defined(cpum68k) and defined(fpu_soft)}
+
 {$define fpc_softfpu_implementation}
 {$define fpc_softfpu_implementation}
 {$i softfpu.pp}
 {$i softfpu.pp}
 {$undef fpc_softfpu_implementation}
 {$undef fpc_softfpu_implementation}
@@ -110,7 +111,7 @@ implementation
 {$define FPC_SYSTEM_HAS_ExtractFloat32Frac}
 {$define FPC_SYSTEM_HAS_ExtractFloat32Frac}
 {$define FPC_SYSTEM_HAS_extractFloat32Exp}
 {$define FPC_SYSTEM_HAS_extractFloat32Exp}
 {$define FPC_SYSTEM_HAS_extractFloat32Sign}
 {$define FPC_SYSTEM_HAS_extractFloat32Sign}
-{$endif cpum68k}
+{$endif defined(cpum68k) and defined(fpu_soft)}
 
 
 {$I system.inc}
 {$I system.inc}
 {$I osdebug.inc}
 {$I osdebug.inc}