From 658bbdb5255f36528445c3492657098c594d13f7 Mon Sep 17 00:00:00 2001 From: Tim R Date: Sun, 31 Mar 2019 13:08:57 -0700 Subject: [PATCH] Update setup.hpp Enable 'if constexpr' when c++17 --- glm/detail/setup.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index 5200fa2b..737fc035 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -289,6 +289,11 @@ #if GLM_HAS_CONSTEXPR # define GLM_CONSTEXPR constexpr +#if GLM_LANG_CXX17_FLAG +# define GLM_IF_CONSTEXPR constexpr +#else +# define GLM_IF_CONSTEXPR +#endif #else # define GLM_CONSTEXPR #endif