diff --git a/src/node.h b/src/node.h index 384b790c97..8857751b50 100644 --- a/src/node.h +++ b/src/node.h @@ -148,14 +148,6 @@ NODE_EXTERN v8::Handle MakeCallback( #define NODE_STRINGIFY_HELPER(n) #n #endif -#ifndef STATIC_ASSERT -#if defined(_MSC_VER) -# define STATIC_ASSERT(expr) static_assert(expr, "") -# else -# define STATIC_ASSERT(expr) static_cast((sizeof(char[-1 + !!(expr)]))) -# endif -#endif - #ifdef _WIN32 // TODO(tjfontaine) consider changing the usage of ssize_t to ptrdiff_t #if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED) diff --git a/src/node_v8_platform.cc b/src/node_v8_platform.cc index 20c79ab417..7439382bca 100644 --- a/src/node_v8_platform.cc +++ b/src/node_v8_platform.cc @@ -101,7 +101,8 @@ void Platform::WorkerBody(void* arg) { TaskQueue::TaskQueue() { int err; - STATIC_ASSERT(kRingSize == (kRingSize & (~(kRingSize - 1)))); + static_assert(kRingSize == (kRingSize & (~(kRingSize - 1))), + "kRingSize is not a power of two"); size_ = kRingSize; ring_ = new Task*[size_];