baranov1ch / node-vcdiff

node.js wrapper for open-vcdiff
MIT License
5 stars 2 forks source link

Cannot build on Windows with VS 2015 #3

Open Metric opened 7 years ago

Metric commented 7 years ago

Thanks to something else I read awhile ago about this issue it is really simple to fix. I downloaded the src and did a node-gyp rebuild on it myself.

Basically to fix this issue in src\third-party\open-vcdiff\vsprojects\config.h

Comment out the following line: #define snprintf _snprintf

In the latest C++ in VS 2015 Microsoft already defines snprintf in the std library properly.