H-uru / Plasma

Cyan Worlds's Plasma game engine
http://h-uru.github.io/Plasma/
GNU General Public License v3.0
205 stars 81 forks source link

Use standard versions of `snprintf`/`swprintf` on Windows #1438

Closed dgelessus closed 1 year ago

dgelessus commented 1 year ago

I thought there was some reason why the non-standard versions were still used, but apparently not. After re-reading the Microsoft docs (snprintf, swprintf), I'm pretty sure we can safely switch to the standard functions on Windows too.

snprintf is supported since VS 2015 and the standard-compliant version of swprintf since at least VS 2010, which is definitely enough for our purposes.