aboutsummaryrefslogtreecommitdiffstats
path: root/src/Chrono.hxx
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/Chrono.hxx
parent4bfd104a23b3abbdfb2ab5dee88fcaec6aea3cf0 (diff)
downloadmpd-25429af1227469e1b8d1c43d5da8d9d1b109fe8c.tar.gz
mpd-25429af1227469e1b8d1c43d5da8d9d1b109fe8c.tar.xz
mpd-25429af1227469e1b8d1c43d5da8d9d1b109fe8c.zip
Compiler.h: add macro GCC_OLDER_THAN()
Diffstat (limited to 'src/Chrono.hxx')
-rw-r--r--src/Chrono.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chrono.hxx b/src/Chrono.hxx
index cc87c5ba1..960a6364c 100644
--- a/src/Chrono.hxx
+++ b/src/Chrono.hxx
@@ -26,7 +26,7 @@
#include <utility>
#include <cstdint>
-#if defined(__GNUC__) && !GCC_CHECK_VERSION(4,7) && !defined(__clang__)
+#if GCC_OLDER_THAN(4,7)
/* std::chrono::duration operators are "constexpr" since gcc 4.7 */
#define chrono_constexpr gcc_pure
#else