@@ -22,21 +22,21 @@ namespace bsdpNode {
2222 Nan::Callback *callback = new Nan::Callback (args[3 ].As <v8::Function>());
2323
2424 Nan::Utf8String param0 (args[0 ]);
25- #ifdef WIN32
25+ #ifdef _WIN32
2626 std::string oldfile = Utf8ToAnsi (*param0);
2727#else
2828 std::string oldfile = std::string (*param0);
2929#endif
3030
3131 Nan::Utf8String param1 (args[1 ]);
32- #ifdef WIN32
32+ #ifdef _WIN32
3333 std::string newfile = Utf8ToAnsi (*param1);
3434#else
3535 std::string newfile = std::string (*param1);
3636#endif
3737
3838 Nan::Utf8String param2 (args[2 ]);
39- #ifdef WIN32
39+ #ifdef _WIN32
4040 std::string patchfile = Utf8ToAnsi (*param2);
4141#else
4242std::string patchfile = std::string (*param2);
@@ -65,7 +65,7 @@ std::string patchfile = std::string(*param2);
6565 char error[1024 ];
6666 memset (error, 0 , sizeof error);
6767
68- #ifdef WIN32
68+ #ifdef _WIN32
6969 int ret = bsdiff (error, Utf8ToAnsi (*oldfile).c_str (), Utf8ToAnsi (*newfile).c_str (), Utf8ToAnsi (*patchfile).c_str (), nullptr , nullptr );
7070#else
7171 int ret = bsdiff (error, *oldfile, *newfile, *patchfile, nullptr , nullptr );
@@ -86,21 +86,21 @@ std::string patchfile = std::string(*param2);
8686 Nan::Callback *callback = new Nan::Callback (args[3 ].As <v8::Function>());
8787
8888 Nan::Utf8String param0 (args[0 ]);
89- #ifdef WIN32
89+ #ifdef _WIN32
9090 std::string oldfile = Utf8ToAnsi (*param0);
9191#else
9292 std::string oldfile = std::string (*param0);
9393#endif
9494
9595 Nan::Utf8String param1 (args[1 ]);
96- #ifdef WIN32
96+ #ifdef _WIN32
9797 std::string newfile = Utf8ToAnsi (*param1);
9898#else
9999 std::string newfile = std::string (*param1);
100100#endif
101101
102102 Nan::Utf8String param2 (args[2 ]);
103- #ifdef WIN32
103+ #ifdef _WIN32
104104 std::string patchfile = Utf8ToAnsi (*param2);
105105#else
106106std::string patchfile = std::string (*param2);
@@ -128,7 +128,7 @@ std::string patchfile = std::string(*param2);
128128 char error[1024 ];
129129 memset (error, 0 , sizeof error);
130130
131- #ifdef WIN32
131+ #ifdef _WIN32
132132 int ret = bspatch (error, Utf8ToAnsi (*oldfile).c_str (), Utf8ToAnsi (*newfile).c_str (), Utf8ToAnsi (*patchfile).c_str (), nullptr , nullptr );
133133#else
134134 int ret = bspatch (error, *oldfile, *newfile, *patchfile, nullptr , nullptr );
0 commit comments