aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-28 18:57:48 +0100
committerMax Kellermann <max@duempel.org>2014-12-26 13:30:44 +0100
commit0964b06240947e94fc2732107815fff41856d481 (patch)
treef9828f651f8c1d88e9abf4914704dbc2edc10398 /src/util
parent92eeca3ba77446b760d3d64d9c50a08029bd4500 (diff)
downloadmpd-0964b06240947e94fc2732107815fff41856d481.tar.gz
mpd-0964b06240947e94fc2732107815fff41856d481.tar.xz
mpd-0964b06240947e94fc2732107815fff41856d481.zip
Compiler.h: add macro GCC_OLDER_THAN()
Diffstat (limited to '')
-rw-r--r--src/util/Manual.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx
index baab0a555..75cffac06 100644
--- a/src/util/Manual.hxx
+++ b/src/util/Manual.hxx
@@ -35,7 +35,7 @@
#include <new>
#include <utility>
-#if !defined(__clang__) && __GNUC__ && !GCC_CHECK_VERSION(4,8)
+#if GCC_OLDER_THAN(4,8)
#include <type_traits>
#endif
@@ -54,7 +54,7 @@
*/
template<class T>
class Manual {
-#if !defined(__clang__) && __GNUC__ && !GCC_CHECK_VERSION(4,8)
+#if GCC_OLDER_THAN(4,8)
/* no alignas() on gcc < 4.8: apply worst-case fallback */
__attribute__((aligned(8)))
#else