zpl-c / enet

⚡️ ENet reliable UDP networking library
https://blog.zpl.pw
MIT License
676 stars 61 forks source link

Remove inet_ntop definitions for mingw #18

Closed alextwothousand closed 4 years ago

alextwothousand commented 4 years ago

The newer versions of MinGW already have these functions defined in their respective headers. This causes issues when compiling with CGo, or Kotlin Native, as they use MinGW behind the scenes. The fix is to remove this piece of code, and anyone using an older version of MinGW will either have to redefine these functions or update.

nxrighthere commented 4 years ago

To fix this properly, these definitions should be added to enable compilation with previous versions.