aboutsummaryrefslogtreecommitdiffstats
path: root/common/opthelpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/opthelpers.h')
-rw-r--r--common/opthelpers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/opthelpers.h b/common/opthelpers.h
index 8f16fd3f..df0be2f5 100644
--- a/common/opthelpers.h
+++ b/common/opthelpers.h
@@ -36,4 +36,10 @@
#define ASSUME(x) ((void)0)
#endif
+#if __cplusplus >= 201709L || defined(__cpp_if_constexpr)
+#define if_constexpr if constexpr
+#else
+#define if_constexpr if
+#endif
+
#endif /* OPTHELPERS_H */