Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
src: fix without-intl build
In 5d38d54, an additional property in node_config.cc was added
whose definition depends on having the local `env` variable declared,
which in turn depended on `NODE_HAVE_I18N_SUPPORT` being defined.

Moving `env = ...` out of the `#ifdef` block allows building via
`./configure --without-intl` again.
  • Loading branch information
addaleax committed May 17, 2016
commit 1d2761acf41bdc2da799d0069e5a3e7551909c3d
2 changes: 1 addition & 1 deletion src/node_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ using v8::Value;
void InitConfig(Local<Object> target,
Local<Value> unused,
Local<Context> context) {
#ifdef NODE_HAVE_I18N_SUPPORT
Environment* env = Environment::GetCurrent(context);
#ifdef NODE_HAVE_I18N_SUPPORT

READONLY_BOOLEAN_PROPERTY("hasIntl");

Expand Down