浏览代码

Fix compilation error for loongarch64 system unit with -dFPC_USE_LIBC option

Pierre Muller 2 年之前
父节点
当前提交
8beb1ab988
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      rtl/loongarch64/loongarch64.inc

+ 2 - 0
rtl/loongarch64/loongarch64.inc

@@ -440,6 +440,7 @@ procedure WriteBarrier; assembler; nostackframe;
     dbar 0
   end;
 
+{$ifndef FPC_SYSTEM_HAS_MOVE}
 {$define FPC_SYSTEM_HAS_MOVE}
 procedure Move(const source;var dest;count:SizeInt);[public, alias: 'FPC_MOVE']; assembler; nostackframe;
   asm
@@ -504,6 +505,7 @@ procedure Move(const source;var dest;count:SizeInt);[public, alias: 'FPC_MOVE'];
   .Lret:
     jr $ra
   end;
+{$endif ndef FPC_SYSTEM_HAS_MOVE}
 
 {$define FPC_SYSTEM_HAS_SYSRESETFPU}
 procedure SysResetFPU;{$ifdef SYSTEMINLINE}inline;{$endif}