diff options
author | Chris Robinson <[email protected]> | 2018-11-17 19:52:54 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-17 19:52:54 -0800 |
commit | d10301c209a1194741d442a44cc4c0d819803144 (patch) | |
tree | 455d2093fd6ad5bc261ed208c7b70d44192717ed /common | |
parent | 1ac41d3ea03aed456a94187bf8e0381eeb4168e6 (diff) |
Remove unused headers and checks
Diffstat (limited to 'common')
-rw-r--r-- | common/align.h | 18 | ||||
-rw-r--r-- | common/atomic.h | 3 | ||||
-rw-r--r-- | common/bool.h | 18 | ||||
-rw-r--r-- | common/static_assert.h | 21 |
4 files changed, 0 insertions, 60 deletions
diff --git a/common/align.h b/common/align.h deleted file mode 100644 index 53a5806a..00000000 --- a/common/align.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef AL_ALIGN_H -#define AL_ALIGN_H - -#if defined(HAVE_STDALIGN_H) && defined(HAVE_C11_ALIGNAS) -#include <stdalign.h> -#endif - -#if !defined(alignas) && !defined(__cplusplus) -#if defined(HAVE_C11_ALIGNAS) -#define alignas _Alignas -#else -/* NOTE: Our custom ALIGN macro can't take a type name like alignas can. For - * maximum compatibility, only provide constant integer values to alignas. */ -#define alignas(_x) ALIGN(_x) -#endif -#endif - -#endif /* AL_ALIGN_H */ diff --git a/common/atomic.h b/common/atomic.h index 4976149a..5838f8da 100644 --- a/common/atomic.h +++ b/common/atomic.h @@ -3,9 +3,6 @@ #include <atomic> -#include "static_assert.h" -#include "bool.h" - #ifdef __GNUC__ /* This helps cast away the const-ness of a pointer without accidentally * changing the pointer type. This is necessary due to Clang's inability to use diff --git a/common/bool.h b/common/bool.h deleted file mode 100644 index eb1d9174..00000000 --- a/common/bool.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef AL_BOOL_H -#define AL_BOOL_H - -#ifdef HAVE_STDBOOL_H -#include <stdbool.h> -#endif - -#if !defined(bool) && !defined(__cplusplus) -#ifdef HAVE_C99_BOOL -#define bool _Bool -#else -#define bool int -#endif -#define false 0 -#define true 1 -#endif - -#endif /* AL_BOOL_H */ diff --git a/common/static_assert.h b/common/static_assert.h deleted file mode 100644 index 3a554fb5..00000000 --- a/common/static_assert.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef AL_STATIC_ASSERT_H -#define AL_STATIC_ASSERT_H - -#include <assert.h> - - -#if !defined(static_assert) && !defined(__cplusplus) -#ifdef HAVE_C11_STATIC_ASSERT -#define static_assert _Static_assert -#else -#define CTASTR2(_pre,_post) _pre##_post -#define CTASTR(_pre,_post) CTASTR2(_pre,_post) -#if defined(__COUNTER__) -#define static_assert(_cond, _msg) typedef struct { int CTASTR(static_assert_failed_at_line_,__LINE__) : !!(_cond); } CTASTR(static_assertion_,__COUNTER__) -#else -#define static_assert(_cond, _msg) struct { int CTASTR(static_assert_failed_at_line_,__LINE__) : !!(_cond); } -#endif -#endif -#endif - -#endif /* AL_STATIC_ASSERT_H */ |