From 1c01e9423719c96866c82cb395388409db0bba35 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 7 May 2014 02:28:25 -0700 Subject: Move the static_assert definition to its own header --- OpenAL32/Include/alMain.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'OpenAL32/Include/alMain.h') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 5af33a3a..a95abd44 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -21,16 +21,6 @@ #include "AL/alext.h" -#ifndef static_assert -#ifdef HAVE_C11_STATIC_ASSERT -#define static_assert _Static_assert -#else -#define CTASTR2(_pre,_post) _pre##_post -#define CTASTR(_pre,_post) CTASTR2(_pre,_post) -#define static_assert(_cond, _msg) typedef struct { int CTASTR(static_assert_failed_at_line_,__LINE__) : !!(_cond); } CTASTR(static_assertion_,__COUNTER__) -#endif -#endif - #if defined(_WIN64) #define SZFMT "%I64u" #elif defined(_WIN32) @@ -40,6 +30,7 @@ #endif +#include "static_assert.h" #include "align.h" #include "atomic.h" #include "uintmap.h" -- cgit v1.2.3