瀏覽代碼

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

git-svn-id: trunk@33670 -
Károly Balogh 9 年之前
父節點
當前提交
7fff76d936
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      rtl/amiga/system.pp

+ 5 - 4
rtl/amiga/system.pp

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