Browse Source

Fixed error to cover deprecated define

Christophe Riccio 9 years ago
parent
commit
e77c300e4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/detail/setup.hpp

+ 1 - 1
glm/detail/setup.hpp

@@ -3,7 +3,7 @@
 
 
 #pragma once
 #pragma once
 
 
-#if defined(GLM_FORCE_SWIZZLE) && defined(GLM_FORCE_UNRESTRICTED_GENTYPE)
+#if (defined(GLM_FORCE_SWIZZLE) || defined(GLM_SWIZZLE)) && defined(GLM_FORCE_UNRESTRICTED_GENTYPE)
 #	error "Both GLM_FORCE_SWIZZLE and GLM_FORCE_UNRESTRICTED_GENTYPE can't be defined at the same time"
 #	error "Both GLM_FORCE_SWIZZLE and GLM_FORCE_UNRESTRICTED_GENTYPE can't be defined at the same time"
 #endif
 #endif