Update setup.hpp

This commit is contained in:
Tim R
2019-03-31 14:14:10 -07:00
committed by GitHub
parent e4ab1096ce
commit b0f6910f0c

View File

@@ -289,15 +289,24 @@
#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
//
#if GLM_HAS_CONSTEXPR
# if (GLM_COMPILER & GLM_COMPILER_CLANG )
# if __has_feature(cxx_if_constexpr)
# define GLM_IF_CONSTEXPR constexpr
# else
# define GLM_IF_CONSTEXPR
# endif
# elif GLM_LANG_CXX17_FLAG
# define GLM_IF_CONSTEXPR constexpr
# else
# define GLM_IF_CONSTEXPR
#endif
//
#if GLM_LANG & GLM_LANG_CXX11_FLAG
# define GLM_HAS_ASSIGNABLE 1