Alias _snprintf to snprintf, fix Windows build.

This commit is contained in:
Ben Noordhuis 2012-03-31 22:27:42 +02:00
parent 2726c22f0b
commit bc834c395b

View File

@ -26,6 +26,10 @@
namespace node {
#ifdef _WIN32
# define snprintf _snprintf
#endif
#ifndef offset_of
// g++ in strict mode complains loudly about the system offsetof() macro
// because it uses NULL as the base address.