aboutsummaryrefslogtreecommitdiffstats
path: root/common/atomic.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-19 03:53:31 -0800
committerChris Robinson <[email protected]>2018-11-19 03:53:31 -0800
commitc01743fe5df8ba4778950176ea38d95c65f25309 (patch)
tree7c1cc0b7354f7cce4b349f75b58fe52ac99bb6ea /common/atomic.h
parente6c2c1f3b6795444a3719e26f203240511c6d464 (diff)
Remove the CONST_CAST hack
Diffstat (limited to 'common/atomic.h')
-rw-r--r--common/atomic.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/common/atomic.h b/common/atomic.h
index d25f3122..b25bd4dd 100644
--- a/common/atomic.h
+++ b/common/atomic.h
@@ -3,18 +3,6 @@
#include <atomic>
-#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
- * atomic_load on a const _Atomic variable.
- */
-#define CONST_CAST(T, V) __extension__({ \
- const T _tmp = (V); \
- (T)_tmp; \
-})
-#else
-#define CONST_CAST(T, V) ((T)(V))
-#endif
#define almemory_order std::memory_order
#define almemory_order_relaxed std::memory_order_relaxed