Chrono: use macro GCC_OLDER_THAN()

This commit is contained in:
Max Kellermann 2016-08-23 09:50:46 +02:00
parent ba69ade024
commit b855f2fcc2

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