Commit 1e073a19 authored by Max Kellermann's avatar Max Kellermann

util/Manual: use gcc_alignas()

parent 7b60e391
......@@ -54,12 +54,7 @@
*/
template<class T>
class Manual {
#if GCC_OLDER_THAN(4,8)
/* no alignas() on gcc < 4.8: apply worst-case fallback */
__attribute__((aligned(8)))
#else
alignas(T)
#endif
gcc_alignas(T, 8)
char data[sizeof(T)];
#ifndef NDEBUG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment