Closed HuxyUK closed 8 years ago
What error does this fix? I want to be cautious here, because I would like static libcaca libraries compiled with VS2015 to work with earlier versions of VS, too.
It's a build error. The latest library used in VS2015 now produces a pragma warning error if snprintf is redefined (as it now has a correct implementation), thus preventing the build from completing.
As the earlier compilers did not provide this functionality, I would presume with this change that a static lib would fail on earlier versions.
Okay, it’s better to fix actual build errors than try to guard against potential incompatibilities. Thanks for the patch.
Visual Studio's compiler (C++ 14) now includes a standard library version of snprintf