mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Update setup.hpp
This commit is contained in:
parent
a03e1fc8f4
commit
fe6c08ea10
@ -296,17 +296,19 @@
|
||||
//
|
||||
#if GLM_HAS_CONSTEXPR
|
||||
# if (GLM_COMPILER & GLM_COMPILER_CLANG )
|
||||
# if __has_feature(cxx_if_constexpr)
|
||||
# define GLM_IF_CONSTEXPR if constexpr
|
||||
# else
|
||||
# define GLM_IF_CONSTEXPR if
|
||||
# endif
|
||||
# define GLM_HAS_IF_CONSTEXPR __has_feature(cxx_if_constexpr)
|
||||
# elif GLM_LANG_CXX17_FLAG
|
||||
# define GLM_IF_CONSTEXPR if constexpr
|
||||
# define GLM_HAS_IF_CONSTEXPR 1
|
||||
# else
|
||||
# define GLM_IF_CONSTEXPR if
|
||||
# define GLM_HAS_IF_CONSTEXPR 0
|
||||
# endif
|
||||
#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
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user