Ver Fonte

Fixed functions not inlined with Clang #302

Christophe Riccio há 11 anos atrás
pai
commit
2fc4532931
1 ficheiros alterados com 1 adições e 4 exclusões
  1. 1 4
      glm/detail/setup.hpp

+ 1 - 4
glm/detail/setup.hpp

@@ -824,12 +824,9 @@
 #	if GLM_COMPILER & GLM_COMPILER_VC
 #	if GLM_COMPILER & GLM_COMPILER_VC
 #		define GLM_INLINE __forceinline
 #		define GLM_INLINE __forceinline
 #		define GLM_NEVER_INLINE __declspec((noinline))
 #		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_INLINE inline __attribute__((__always_inline__))
 #		define GLM_NEVER_INLINE __attribute__((__noinline__))
 #		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
 #	else
 #		define GLM_INLINE inline
 #		define GLM_INLINE inline
 #		define GLM_NEVER_INLINE
 #		define GLM_NEVER_INLINE