workaround clang-14 bug
[LibreOffice.git] / external / glm / clang-cl.patch.0
blob6ba15fb788b12addd69ca2e7dac29c18a6d94ca1
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/detail/func_integer.inl
4 +++ glm/detail/func_integer.inl
5 @@ -3,7 +3,9 @@
6  #include "_vectorize.hpp"
7  #if(GLM_ARCH & GLM_ARCH_X86 && GLM_COMPILER & GLM_COMPILER_VC)
8  #      include <intrin.h>
9 +#if !defined __clang__
10  #      pragma intrinsic(_BitScanReverse)
11 +#endif
12  #endif//(GLM_ARCH & GLM_ARCH_X86 && GLM_COMPILER & GLM_COMPILER_VC)
13  #include <limits>