Index: src/checks.h |
diff --git a/src/checks.h b/src/checks.h |
index 1feecf3a928364218eb9c9545d87c094cdfbc22e..b309e2c42c79361b53d7eacaaf6d75028d1a64d5 100644 |
--- a/src/checks.h |
+++ b/src/checks.h |
@@ -30,8 +30,6 @@ |
#include <string.h> |
-#include "globals.h" |
- |
#include "../include/v8stdint.h" |
extern "C" void V8_Fatal(const char* file, int line, const char* format, ...); |
@@ -234,7 +232,7 @@ inline void CheckNonEqualsHelper(const char* file, |
// Use C++11 static_assert if possible, which gives error |
// messages that are easier to understand on first sight. |
-#if V8_CXX_STATIC_ASSERT |
+#if __cplusplus >= 201103L |
#define STATIC_CHECK(test) static_assert(test, #test) |
#else |
// This is inspired by the static assertion facility in boost. This |
@@ -256,7 +254,7 @@ template <int> class StaticAssertionHelper { }; |
typedef \ |
StaticAssertionHelper<sizeof(StaticAssertion<static_cast<bool>((test))>)> \ |
SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__) |
-#endif // V8_CXX_STATIC_ASSERT |
+#endif |
extern bool FLAG_enable_slow_asserts; |