Skip to content

Commit

Permalink
src: fix without-intl build
Browse files Browse the repository at this point in the history
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.

PR-URL: #6820
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
addaleax authored and Fishrock123 committed May 23, 2016
1 parent e0116e3 commit ee32678
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ee32678

Please sign in to comment.