Compiler.h: add macro GCC_OLDER_THAN()

This commit is contained in:
Max Kellermann
2014-11-28 18:57:48 +01:00
parent 4bfd104a23
commit 25429af122
3 changed files with 13 additions and 5 deletions

View File

@@ -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