diff --git a/src/d8/d8.cc b/src/d8/d8.cc index b1f05ecc50..3cbfe5b961 100644 --- a/src/d8/d8.cc +++ b/src/d8/d8.cc @@ -2803,13 +2803,13 @@ Local Shell::CreateGlobalTemplate(Isolate* isolate) { Local Shell::CreateOSTemplate(Isolate* isolate) { Local os_template = ObjectTemplate::New(isolate); AddOSMethods(isolate, os_template); -#if V8_TARGET_OS_LINUX +#if defined(V8_TARGET_OS_LINUX) const char os_name[] = "linux"; -#elif V8_TARGET_OS_WIN +#elif defined(V8_TARGET_OS_WIN) const char os_name[] = "windows"; -#elif V8_TARGET_OS_MACOSX +#elif defined(V8_TARGET_OS_MACOSX) const char os_name[] = "macos"; -#elif V8_TARGET_OS_ANDROID +#elif defined(V8_TARGET_OS_ANDROID) const char os_name[] = "android"; #else const char os_name[] = "unknown";