Commit 71cad9ed authored by jochen@chromium.org's avatar jochen@chromium.org

Fix incorrect #ifdef statements for I18N support.

R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/21509002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16014 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 8bee9f0c
......@@ -398,7 +398,7 @@ enum CompressedStartupDataItems {
kSnapshotContext,
kLibraries,
kExperimentalLibraries,
#if defined(ENABLE_I18N_SUPPORT)
#if defined(V8_I18N_SUPPORT)
kI18NExtension,
#endif
kCompressedStartupDataCount
......@@ -442,7 +442,7 @@ void V8::GetCompressedStartupData(StartupData* compressed_data) {
compressed_data[kExperimentalLibraries].raw_size =
i::ExperimentalNatives::GetRawScriptsSize();
#if defined(ENABLE_I18N_SUPPORT)
#if defined(V8_I18N_SUPPORT)
i::Vector<const ii:byte> i18n_extension_source =
i::I18NNatives::GetScriptsSource();
compressed_data[kI18NExtension].data =
......@@ -482,7 +482,7 @@ void V8::SetDecompressedStartupData(StartupData* decompressed_data) {
decompressed_data[kExperimentalLibraries].raw_size);
i::ExperimentalNatives::SetRawScriptsSource(exp_libraries_source);
#if defined(ENABLE_I18N_SUPPORT)
#if defined(V8_I18N_SUPPORT)
ASSERT_EQ(i::I18NNatives::GetRawScriptsSize(),
decompressed_data[kI18NExtension].raw_size);
i::Vector<const char> i18n_extension_source(
......
......@@ -27,7 +27,7 @@
#include "icu_util.h"
#if defined(_WIN32) && defined(ENABLE_I18N_SUPPORT)
#if defined(_WIN32) && defined(V8_I18N_SUPPORT)
#include <windows.h>
#include "unicode/putil.h"
......@@ -42,7 +42,7 @@ namespace v8 {
namespace internal {
bool InitializeICU() {
#if defined(_WIN32) && defined(ENABLE_I18N_SUPPORT)
#if defined(_WIN32) && defined(V8_I18N_SUPPORT)
// We expect to find the ICU data module alongside the current module.
HMODULE module = LoadLibraryA(ICU_UTIL_DATA_SHARED_MODULE_NAME);
if (!module) return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment