diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index 373ac935..cbfdaf01 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -177,7 +177,7 @@ namespace detail } // trunc -# if GLM_LANG & GLM_LANG_CXX0X_FLAG +# if GLM_HAS_CXX11_STL using ::std::trunc; # else template @@ -196,7 +196,7 @@ namespace detail } // round -# if GLM_LANG & GLM_LANG_CXX0X_FLAG +# if GLM_HAS_CXX11_STL using ::std::round; # else template diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index c2018fb2..41d0503c 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -458,6 +458,11 @@ // http://gcc.gnu.org/projects/cxx0x.html // http://msdn.microsoft.com/en-us/library/vstudio/hh567368(v=vs.120).aspx +// N1720 +#define GLM_HAS_CXX11_STL ( \ + (GLM_LANG & GLM_LANG_CXX11_FLAG) || \ + ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC13))) + // N1720 #define GLM_HAS_STATIC_ASSERT ( \ (GLM_LANG & GLM_LANG_CXX11_FLAG) || \