From bc834c395b45c01681d6cf0668a6574e70d9342d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 31 Mar 2012 22:27:42 +0200 Subject: [PATCH] Alias _snprintf to snprintf, fix Windows build. --- src/node_internals.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node_internals.h b/src/node_internals.h index 20c105ea0c..0646727e1b 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -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.