Fixed Visual C++ language detection

This commit is contained in:
Groove
2018-07-20 00:40:49 +02:00
parent 3b98e220bc
commit 9a0311f327
2 changed files with 20 additions and 8 deletions

View File

@@ -133,8 +133,18 @@
#elif defined(GLM_FORCE_CXX98)
# define GLM_LANG GLM_LANG_CXX98
#else
# ifdef _MSVC_LANG
# define GLM_LANG_PLATFORM _MSVC_LANG
# if GLM_COMPILER & GLM_COMPILER_VC && defined(_MSVC_LANG)
# if GLM_COMPILER >= GLM_COMPILER_VC15_7
# define GLM_LANG_PLATFORM _MSVC_LANG
# elif GLM_COMPILER >= GLM_COMPILER_VC15
# if _MSVC_LANG > 201402L
# define GLM_LANG_PLATFORM 201402L
# else
# define GLM_LANG_PLATFORM _MSVC_LANG
# endif
# else
# define GLM_LANG_PLATFORM 0
# endif
# else
# define GLM_LANG_PLATFORM 0
# endif