Parcourir la source

Amiga: disable inlining in fpsockets
the linker (vlink) throws an error on the Default() call in NetAddr()

Marcus Sackrow il y a 1 mois
Parent
commit
4168976a42
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      packages/fcl-net/src/fpsockets.pp

+ 4 - 0
packages/fcl-net/src/fpsockets.pp

@@ -27,6 +27,10 @@ interface
 {$DEFINE HAVE_SELECT_CALL}
 {$ENDIF}
 
+{$IfDef HASAMIGA}
+{$inline off}  // inlining on Amiga currently does not work, results in linker error on Default() in NetAddr();
+{$EndIf}
+
 {$IFDEF FPC_DOTTEDUNITS}
 uses
   {$IfDef WINDOWS}WinApi.WinSock2, {$ENDIF}