Commit b855f2fc authored by Max Kellermann's avatar Max Kellermann

Chrono: use macro GCC_OLDER_THAN()

parent ba69ade0
...@@ -26,7 +26,7 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment