win: Fix link errors caused by libicu

This commit is contained in:
Cheng Zhao 2015-04-10 15:35:25 +08:00
parent 3a5bb588e5
commit 1f66006c93
2 changed files with 31 additions and 0 deletions

View file

@ -52,6 +52,14 @@ REFERENCE_MODULE(atom_renderer_ipc);
REFERENCE_MODULE(atom_renderer_web_frame);
#undef REFERENCE_MODULE
// The "v8::Function::kLineOffsetNotFound" is exported in node.dll, but the
// linker can not find it, could be a bug of VS.
#if defined(OS_WIN) && !defined(DEBUG)
namespace v8 {
const int Function::kLineOffsetNotFound = -1;
}
#endif
namespace atom {
namespace {