lsalzman / enet

ENet reliable UDP networking library
MIT License
2.66k stars 667 forks source link

Fix compiler warnings on Windows due to redefines #258

Closed arvid-norlander closed 1 month ago

arvid-norlander commented 1 month ago

The defines were already set globally in our environment when building with VS2019, causing warnings due to redefines (and we treat all warnings as errors). The fix is simple, add #ifndef around the defines so they are only defined if not already defined.