Chrono: use macro GCC_OLDER_THAN()
This commit is contained in:
parent
ba69ade024
commit
b855f2fcc2
@ -26,7 +26,7 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <cstdint>
|
#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 */
|
/* std::chrono::duration operators are "constexpr" since gcc 4.7 */
|
||||||
#define chrono_constexpr gcc_pure
|
#define chrono_constexpr gcc_pure
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user