Update setup.hpp

This commit is contained in:
Tim R 2019-03-31 17:47:11 -07:00 committed by GitHub
parent a03e1fc8f4
commit fe6c08ea10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,17 +296,19 @@
// //
#if GLM_HAS_CONSTEXPR #if GLM_HAS_CONSTEXPR
# if (GLM_COMPILER & GLM_COMPILER_CLANG ) # if (GLM_COMPILER & GLM_COMPILER_CLANG )
# if __has_feature(cxx_if_constexpr) # define GLM_HAS_IF_CONSTEXPR __has_feature(cxx_if_constexpr)
# define GLM_IF_CONSTEXPR if constexpr
# else
# define GLM_IF_CONSTEXPR if
# endif
# elif GLM_LANG_CXX17_FLAG # elif GLM_LANG_CXX17_FLAG
# define GLM_IF_CONSTEXPR if constexpr # define GLM_HAS_IF_CONSTEXPR 1
# else # else
# define GLM_IF_CONSTEXPR if # define GLM_HAS_IF_CONSTEXPR 0
# endif # endif
#else #else
# define GLM_HAS_IF_CONSTEXPR 0
#endif
#if GLM_HAS_IF_CONSTEXPR
# define GLM_IF_CONSTEXPR if constexpr
#else
# define GLM_IF_CONSTEXPR if # define GLM_IF_CONSTEXPR if
#endif #endif