From 2fc4532931902b87ca0fba2ad992e24b85c0936d Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 10 Feb 2015 00:59:57 +0100 Subject: [PATCH] Fixed functions not inlined with Clang #302 --- glm/detail/setup.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index 115a2d28..ad734ed7 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -824,12 +824,9 @@ # if GLM_COMPILER & GLM_COMPILER_VC # define GLM_INLINE __forceinline # define GLM_NEVER_INLINE __declspec((noinline)) -# elif GLM_COMPILER & GLM_COMPILER_GCC +# elif GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_APPLE_CLANG | GLM_COMPILER_LLVM) # define GLM_INLINE inline __attribute__((__always_inline__)) # define GLM_NEVER_INLINE __attribute__((__noinline__)) -# elif GLM_COMPILER & (GLM_COMPILER_APPLE_CLANG | GLM_COMPILER_LLVM) -# define GLM_INLINE __attribute__((__always_inline__)) -# define GLM_NEVER_INLINE __attribute__((__noinline__)) # else # define GLM_INLINE inline # define GLM_NEVER_INLINE