Commit 31eeeab3 authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Just check for C++ version.

This fixes build breakage introduced with r15736.

TBR=svenpanne@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15737 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent aaad82db
...@@ -232,9 +232,7 @@ inline void CheckNonEqualsHelper(const char* file, ...@@ -232,9 +232,7 @@ inline void CheckNonEqualsHelper(const char* file,
// Use C++11 static_assert if possible, which gives error // Use C++11 static_assert if possible, which gives error
// messages that are easier to understand on first sight. // messages that are easier to understand on first sight.
#if __cplusplus >= 201103L || \ #if __cplusplus >= 201103L
(defined(__has_feature) && __has_feature(cxx_static_assert)) || \
(defined(__has_extension) && __has_extension(cxx_static_assert))
#define STATIC_CHECK(test) static_assert(test, #test) #define STATIC_CHECK(test) static_assert(test, #test)
#else #else
// This is inspired by the static assertion facility in boost. This // This is inspired by the static assertion facility in boost. This
......
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