zpl-c / enet

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

Marked the IPv6 constants as static to avoid multiple definitions. #30

Closed nitrix closed 3 years ago

nitrix commented 3 years ago

This fixes issue #29.

I chose to go with static approach instead of moving them to ENET_IMPLEMENTATION, because it seems like these are intended to be visible to the user of the library as convenient constants they're allowed to use, and therefore, wont break backwards compatibility.

zpl-zak commented 3 years ago

Thank you for the contribution!