Просмотр исходного кода

Fix compilation error for loongarch64 system unit with -dFPC_USE_LIBC option

Pierre Muller 2 лет назад
Родитель
Сommit
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}