Reviewers: danno,

Description:
Fix broken build on Windows due to r11198.

This also fixes a style issue in lazy-instance.h.


Please review this at https://chromiumcodereview.appspot.com/9960006/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/lazy-instance.h
  M src/platform-win32.cc


Index: src/lazy-instance.h
diff --git a/src/lazy-instance.h b/src/lazy-instance.h
index 7534d9bc0c19495879747af8c98ceccfd20de331..4beb55c0a291b05cf91bde23ffd8af03f1be9f6a 100644
--- a/src/lazy-instance.h
+++ b/src/lazy-instance.h
@@ -191,7 +191,7 @@ struct LazyInstanceImpl {
         &once_,
         // Casts to void* are needed here to avoid breaking strict aliasing
         // rules.
-        reinterpret_cast<void (*)(void*)>(&InitInstance),
+        reinterpret_cast<void(*)(void*)>(&InitInstance),  // NOLINT
         reinterpret_cast<void*>(&storage_));
   }

Index: src/platform-win32.cc
diff --git a/src/platform-win32.cc b/src/platform-win32.cc
index 198bbb3f7b586eab00ca981e540fdf1b96d1c278..3adae181e1db80b602eadd5d17f1a36e7580c72e 100644
--- a/src/platform-win32.cc
+++ b/src/platform-win32.cc
@@ -214,7 +214,9 @@ UNARY_MATH_FUNCTION(sqrt, CreateSqrtFunction())


 void MathSetup() {
+#ifdef _WIN64
   init_modulo_function();
+#endif
   init_fast_sin_function();
   init_fast_cos_function();
   init_fast_tan_function();


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to