Przeglądaj źródła

Avoid double declaration of seterrno

Pierre Muller 1 rok temu
rodzic
commit
9dc75c3005
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      rtl/unix/syscall.pp

+ 2 - 1
rtl/unix/syscall.pp

@@ -26,8 +26,9 @@ uses
 {$endif FPC_HAS_SETSYSNR_INC}
 
 {$ifdef FPC_USE_LIBC}
+{$if not declared(seterrno)}
 procedure seterrno(err:cint); external name 'FPC_SYS_SETERRNO';
-
+{$endif}
 {$I syscall.inc}
 {$endif}