1 # "#pragma intrinsic" not (yet?) handled in the "if (LangOpts.MicrosoftExt)"
2 # block in Preprocessor::RegisterBuiltinPragmas in Clang's lib/Lex/Pragma.cpp:
3 --- glm/core/func_integer.inl
4 +++ glm/core/func_integer.inl
6 #if(GLM_ARCH != GLM_ARCH_PURE)
\r
7 #if(GLM_COMPILER & GLM_COMPILER_VC)
\r
9 +#if !defined __clang__
\r
10 # pragma intrinsic(_BitScanReverse)
\r
12 #endif//(GLM_COMPILER & GLM_COMPILER_VC)
\r
13 #endif//(GLM_ARCH != GLM_ARCH_PURE)
\r
16 # Fix check for availability of C++11 static_assert (it apparently should be
17 # conditional on GLM_LANG_CXX11 instead of GLM_LANG_CXX0X, but just don't care
18 # to try to fix that mess, and use __cplusplus value instead; unconditionally
19 # using C++11 static_assert would fail in external/libgltf, which uses
20 # external/glm but does not -std=c++11); falling back to BOOST_STATIC_ASSERT
21 # would cause unnecessary warnings with clang-cl:
22 --- glm/core/setup.hpp
23 +++ glm/core/setup.hpp
25 ///////////////////////////////////////////////////////////////////////////////////////////////////
\r
28 -#if(GLM_LANG == GLM_LANG_CXX0X)
\r
29 +#if __cplusplus >= 201103L
\r
30 # define GLM_STATIC_ASSERT(x, message) static_assert(x, message)
\r
31 #elif(defined(BOOST_STATIC_ASSERT))
\r
32 # define GLM_STATIC_ASSERT(x, message) BOOST_STATIC_ASSERT(x)
\r