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-11-28 19:09:52 +0100
commit25429af1227469e1b8d1c43d5da8d9d1b109fe8c (patch)
tree4cb57fad715395ced7f1cc38abb0b4b497758b61 /src/util
parent4bfd104a23b3abbdfb2ab5dee88fcaec6aea3cf0 (diff)
downloadmpd-25429af1227469e1b8d1c43d5da8d9d1b109fe8c.tar.gz
mpd-25429af1227469e1b8d1c43d5da8d9d1b109fe8c.tar.xz
mpd-25429af1227469e1b8d1c43d5da8d9d1b109fe8c.zip
Compiler.h: add macro GCC_OLDER_THAN()
Diffstat (limited to 'src/util')
-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 3cdf7d0df..fa4b00615 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