Alias _snprintf to snprintf, fix Windows build.

pull/24503/head
Ben Noordhuis 2012-03-31 22:27:42 +02:00
parent 2726c22f0b
commit bc834c395b
1 changed files with 4 additions and 0 deletions

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.