pond3r / ggpo

Good Game, Peace Out Rollback Network SDK
MIT License
3.12k stars 361 forks source link

Use properly namespaced min/max #8

Closed janisozaur closed 4 years ago

janisozaur commented 4 years ago

https://en.cppreference.com/w/cpp/algorithm/min

pond3r commented 4 years ago

Hey janisozaur. I'd like to avoid pulling in the STL unless there's a really high value. Right now min and max come in through windef.h, which I know isn't ideal. It looks like there's a MAX macro in types.h already. Maybe should just define MIN there too and replace the use of min and max with those. Thanks for helping out!!