Fixed Mac build when enable_run_as_node==false

This commit is contained in:
Ales Pergl 2018-03-09 10:51:09 +01:00
parent 30405a3441
commit 94299f6cd8
3 changed files with 6 additions and 2 deletions

View file

@ -42,6 +42,7 @@ namespace {
const auto kRunAsNode = "ELECTRON_RUN_AS_NODE";
#endif
#if defined(ENABLE_RUN_AS_NODE) || defined(OS_WIN)
bool IsEnvSet(const char* name) {
#if defined(OS_WIN)
size_t required_size;
@ -52,6 +53,7 @@ bool IsEnvSet(const char* name) {
return indicator && indicator[0] != '\0';
#endif
}
#endif
} // namespace