diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-03-31 22:27:42 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-03-31 22:37:51 +0200 |
commit | bc834c395b45c01681d6cf0668a6574e70d9342d (patch) | |
tree | 076ff0dc5ddd6335ce7b8a9e7e9a2d3c05ec8d76 /src/node_internals.h | |
parent | 2726c22f0b84c08d7a4c3a2d9f63248675374089 (diff) | |
download | node-new-bc834c395b45c01681d6cf0668a6574e70d9342d.tar.gz |
Alias _snprintf to snprintf, fix Windows build.
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. |