Skip to content

Test: only use _snprintf with pre-VS2015

Sean McBride requested to merge seanm/vtk:windows-snprintf into master

Infuriatingly, Visual Studio has not supported C99’s snprintf until VS2015.

Modify a couple of workaround hacks to only apply to pre-VS2015.

This is more than just a cleanup. snprintf guarantees null termination, _snprintf does not! The return values are also different, though rarely used.

Merge request reports