mirror of https://github.com/nodejs/node.git
Alias _snprintf to snprintf, fix Windows build.
parent
2726c22f0b
commit
bc834c395b
|
@ -26,6 +26,10 @@
|
||||||
|
|
||||||
namespace node {
|
namespace node {
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
# define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef offset_of
|
#ifndef offset_of
|
||||||
// g++ in strict mode complains loudly about the system offsetof() macro
|
// g++ in strict mode complains loudly about the system offsetof() macro
|
||||||
// because it uses NULL as the base address.
|
// because it uses NULL as the base address.
|
||||||
|
|
Loading…
Reference in New Issue