diff options
author | Chris Robinson <[email protected]> | 2014-05-07 02:28:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-07 02:28:25 -0700 |
commit | 1c01e9423719c96866c82cb395388409db0bba35 (patch) | |
tree | db5c882bc256011c38d58bfc10c48629898f5a5f /OpenAL32/Include/alMain.h | |
parent | d8d609b9401b2f8fc121cccbde253c17f07d2580 (diff) |
Move the static_assert definition to its own header
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 11 |
1 files changed, 1 insertions, 10 deletions
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" |