mirror of
https://github.com/g-truc/glm.git
synced 2025-04-05 05:25:02 +00:00
Update setup.hpp
Enable 'if constexpr' when c++17
This commit is contained in:
parent
503a22960a
commit
658bbdb525
1 changed files with 5 additions and 0 deletions
|
@ -289,6 +289,11 @@
|
|||
|
||||
#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
|
||||
|
|
Loading…
Add table
Reference in a new issue