diff options
author | Max Kellermann <max@duempel.org> | 2014-12-09 23:05:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-09 23:05:47 +0100 |
commit | 1e073a196fa011e1581ebe8ead3823f8322257ca (patch) | |
tree | 48836feea49ebb0b66181f71ff04a695900f9f73 | |
parent | 7b60e3916c77560123229511abbe87b2910c035d (diff) | |
download | mpd-1e073a196fa011e1581ebe8ead3823f8322257ca.tar.gz mpd-1e073a196fa011e1581ebe8ead3823f8322257ca.tar.xz mpd-1e073a196fa011e1581ebe8ead3823f8322257ca.zip |
util/Manual: use gcc_alignas()
-rw-r--r-- | src/util/Manual.hxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx index 153851aba..dd5b7e02f 100644 --- a/src/util/Manual.hxx +++ b/src/util/Manual.hxx @@ -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 |