On 16-1-2023 20:56, Giuliano Colla via fpc-pascal wrote:
No chance. Addr is a pointer (of type Pin_addr)
but
Addr := Pin_addr(HostEnt.h_addr^)
works only if mode is Delphi. In objfpc it raises exactly the same error.
A little bit weird, isn't it?
It depends. It assumes .h_addr is compatible with pointer. Since Free
Pascal is more portable, that might be a platform dependent assumption.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal