The International Simutrans Forum

 

Author Topic: Coding style  (Read 2802 times)

0 Members and 1 Guest are viewing this topic.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2468
  • Languages: EN
Re: Coding style
« Reply #35 on: June 05, 2018, 05:36:20 PM »
Quote
AMIGA_OS requires IPV4_ONLY
Is the reason for this that Amiga does not support POSIX sockets?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9211
  • Languages: De,EN,JP
Re: Coding style
« Reply #36 on: June 07, 2018, 09:08:02 AM »
Lacking an amiga, I do not know. But also the IP6 code for windows still require some defines. I think OS interacting code without defines is almost impossible, even different Linux flavour have that kind of trouble (like to font patchs show ...).

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2468
  • Languages: EN
Re: Coding style
« Reply #37 on: June 07, 2018, 05:27:52 PM »
The point of POSIX compliant socket implementations is that they provide all the defines. Even if the IPv6 part does not work on the platform, the IPv4 part still should.

However it appears IPv6 macros are indeed optional so I guess they might not be defined. That said it may be possible to work around that with some cleaver macro usage. The big question still remains if Amiga supports POSIX sockets properly or not.
« Last Edit: June 07, 2018, 05:55:44 PM by DrSuperGood »