Fixed Visual C++ 10 build

master
Christophe Riccio ago%!(EXTRA string=11 years)
parent 1331e156cb
commit fc253a0e5b
  1. 4
      glm/detail/func_common.inl
  2. 5
      glm/detail/setup.hpp

@ -177,7 +177,7 @@ namespace detail
}
// trunc
# if GLM_LANG & GLM_LANG_CXX0X_FLAG
# if GLM_HAS_CXX11_STL
using ::std::trunc;
# else
template <typename genType>
@ -196,7 +196,7 @@ namespace detail
}
// round
# if GLM_LANG & GLM_LANG_CXX0X_FLAG
# if GLM_HAS_CXX11_STL
using ::std::round;
# else
template <typename genType>

@ -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) || \

Loading…
Cancel
Save