mirror of
https://github.com/g-truc/glm.git
synced 2024-11-12 21: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_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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user