Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Alias _snprintf to snprintf, fix Windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Mar 31, 2012
1 parent 2726c22 commit bc834c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node_internals.h
Expand Up @@ -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.
Expand Down

0 comments on commit bc834c3

Please sign in to comment.