From 389ca19d61af75049c3b8e78366409a4b9816a70 Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Fri, 15 Feb 2013 08:32:56 +1000 Subject: [PATCH] Fix a Clang compilation error. The issue here is that GLM_DEPRECATED, GL_ALIGN, etc is being left undefined with the Clang build. --- glm/core/_detail.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/core/_detail.hpp b/glm/core/_detail.hpp index ad8f19e3..e4724d0b 100644 --- a/glm/core/_detail.hpp +++ b/glm/core/_detail.hpp @@ -452,7 +452,7 @@ namespace detail # define GLM_RESTRICT # define GLM_RESTRICT_VAR __restrict # define GLM_CONSTEXPR -#elif((GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_LLVM_GCC)) && (GLM_COMPILER >= GLM_COMPILER_GCC31)) +#elif(((GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_LLVM_GCC)) && (GLM_COMPILER >= GLM_COMPILER_GCC31)) || (GLM_COMPILER & GLM_COMPILER_CLANG)) # define GLM_DEPRECATED __attribute__((__deprecated__)) # define GLM_ALIGN(x) __attribute__((aligned(x))) # define GLM_ALIGNED_STRUCT(x) struct __attribute__((aligned(x)))