Revision: 16014
Author:   [email protected]
Date:     Thu Aug  1 12:21:16 2013
Log:      Fix incorrect #ifdef statements for I18N support.

[email protected]

Review URL: https://codereview.chromium.org/21509002
http://code.google.com/p/v8/source/detail?r=16014

Modified:
 /branches/bleeding_edge/src/api.cc
 /branches/bleeding_edge/src/icu_util.cc

=======================================
--- /branches/bleeding_edge/src/api.cc  Tue Jul 30 10:05:50 2013
+++ /branches/bleeding_edge/src/api.cc  Thu Aug  1 12:21:16 2013
@@ -398,7 +398,7 @@
   kSnapshotContext,
   kLibraries,
   kExperimentalLibraries,
-#if defined(ENABLE_I18N_SUPPORT)
+#if defined(V8_I18N_SUPPORT)
   kI18NExtension,
 #endif
   kCompressedStartupDataCount
@@ -442,7 +442,7 @@
   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 @@
       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(
=======================================
--- /branches/bleeding_edge/src/icu_util.cc     Thu Jul 11 02:58:54 2013
+++ /branches/bleeding_edge/src/icu_util.cc     Thu Aug  1 12:21:16 2013
@@ -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 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;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to