From 2bd42176855ac34c8f362df5a5cf235db36d27f1 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 7 Sep 2019 14:09:36 +0200 Subject: [PATCH] Fixed build --- glm/detail/setup.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index c1a75de1..fbe8679a 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -294,8 +294,12 @@ // #if GLM_HAS_CONSTEXPR -# if (GLM_COMPILER & GLM_COMPILER_CLANG) && __has_feature(cxx_if_constexpr) -# define GLM_HAS_IF_CONSTEXPR 1 +# if (GLM_COMPILER & GLM_COMPILER_CLANG) +# if __has_feature(cxx_if_constexpr) +# define GLM_HAS_IF_CONSTEXPR 1 +# else +# define GLM_HAS_IF_CONSTEXPR 0 +# endif # elif (GLM_LANG & GLM_LANG_CXX17_FLAG) # define GLM_HAS_IF_CONSTEXPR 1 # else