mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 06:44:35 +00:00
setup.hpp: Moved code in meaningful order.
This commit is contained in:
parent
ebdd48fa6f
commit
2c89bb11df
@ -689,14 +689,6 @@
|
|||||||
((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2013)))
|
((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2013)))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
|
||||||
#if GLM_ARCH == GLM_ARCH_PURE
|
|
||||||
# define GLM_HAS_BITSCAN_WINDOWS 0
|
|
||||||
#else
|
|
||||||
# define GLM_HAS_BITSCAN_WINDOWS (GLM_PLATFORM & GLM_PLATFORM_WINDOWS) && (\
|
|
||||||
(GLM_COMPILER & (GLM_COMPILER_VC | GLM_COMPILER_LLVM | GLM_COMPILER_INTEL))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// OpenMP
|
// OpenMP
|
||||||
#ifdef _OPENMP
|
#ifdef _OPENMP
|
||||||
# if GLM_COMPILER & GLM_COMPILER_GCC
|
# if GLM_COMPILER & GLM_COMPILER_GCC
|
||||||
@ -787,6 +779,14 @@
|
|||||||
# define GLM_ARCH GLM_ARCH_PURE
|
# define GLM_ARCH GLM_ARCH_PURE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
#if GLM_ARCH == GLM_ARCH_PURE
|
||||||
|
# define GLM_HAS_BITSCAN_WINDOWS 0
|
||||||
|
#else
|
||||||
|
# define GLM_HAS_BITSCAN_WINDOWS (GLM_PLATFORM & GLM_PLATFORM_WINDOWS) && (\
|
||||||
|
(GLM_COMPILER & (GLM_COMPILER_VC | GLM_COMPILER_LLVM | GLM_COMPILER_INTEL))
|
||||||
|
#endif
|
||||||
|
|
||||||
// With MinGW-W64, including intrinsic headers before intrin.h will produce some errors. The problem is
|
// With MinGW-W64, including intrinsic headers before intrin.h will produce some errors. The problem is
|
||||||
// that windows.h (and maybe other headers) will silently include intrin.h, which of course causes problems.
|
// that windows.h (and maybe other headers) will silently include intrin.h, which of course causes problems.
|
||||||
// To fix, we just explicitly include intrin.h here.
|
// To fix, we just explicitly include intrin.h here.
|
||||||
|
Loading…
Reference in New Issue
Block a user