From 0473ac90bb7f5a7c7361645d1e87ef38329ba3a0 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Fri, 2 Jan 2015 15:52:59 +0100 Subject: [PATCH] common: move STATIC_ASSERT to uv-common.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/libuv/libuv/pull/82 Reviewed-By: Bert Belder Reviewed-By: Saúl Ibarra Corretgé --- src/unix/internal.h | 3 --- src/uv-common.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/unix/internal.h b/src/unix/internal.h index daad61b7..03a92261 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -52,9 +52,6 @@ # include #endif -#define STATIC_ASSERT(expr) \ - void uv__static_assert(int static_assert_failed[1 - 2 * !(expr)]) - #define ACCESS_ONCE(type, var) \ (*(volatile type*) &(var)) diff --git a/src/uv-common.h b/src/uv-common.h index 7d3c58f1..11e7fc39 100644 --- a/src/uv-common.h +++ b/src/uv-common.h @@ -46,6 +46,9 @@ #define container_of(ptr, type, member) \ ((type *) ((char *) (ptr) - offsetof(type, member))) +#define STATIC_ASSERT(expr) \ + void uv__static_assert(int static_assert_failed[1 - 2 * !(expr)]) + #ifndef _WIN32 enum { UV__HANDLE_INTERNAL = 0x8000,