Merge pull request #922 from karjonas/gcc_if_constexpr

Fix gcc if constexpr error #922
master
Christophe ago%!(EXTRA string=6 years) committed by GitHub
commit 867a40acf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      glm/detail/setup.hpp

@ -298,7 +298,7 @@
# if (GLM_COMPILER & GLM_COMPILER_CLANG)
# define GLM_HAS_IF_CONSTEXPR __has_feature(cxx_if_constexpr)
# elif (GLM_COMPILER & GLM_COMPILER_GCC)
# define GLM_HAS_IF_CONSTEXPR GLM_COMPILER >= GLM_COMPILER_GCC7
# define GLM_HAS_IF_CONSTEXPR (__cplusplus >= 201703L)
# elif (GLM_LANG & GLM_LANG_CXX17_FLAG)
# define GLM_HAS_IF_CONSTEXPR 1
# else

Loading…
Cancel
Save