Skip to content

Commit 9c95606

Browse files
committed
src: declare v8_platform.platform_ unconditionally
v8_platform.platform_ is referenced by node::Start without regard to the value of NODE_USE_V8_PLATFORM, so it should be declared unconditionally, otherwise Node fails to compile when !NODE_USE_V8_PLATFORM.
1 parent afb7c1b commit 9c95606

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ static struct {
228228
}
229229
#endif // HAVE_INSPECTOR
230230

231-
v8::Platform* platform_;
232231
#else // !NODE_USE_V8_PLATFORM
233232
void Initialize(int thread_pool_size) {}
234233
void PumpMessageLoop(Isolate* isolate) {}
@@ -239,6 +238,8 @@ static struct {
239238
return false; // make compiler happy
240239
}
241240
#endif // !NODE_USE_V8_PLATFORM
241+
242+
v8::Platform* platform_;
242243
} v8_platform;
243244

244245
#ifdef __POSIX__

0 commit comments

Comments
 (0)