Browse Source

Fixed clang build

Christophe Riccio 7 years ago
parent
commit
7c9c8cbd6f
4 changed files with 5 additions and 4 deletions
  1. 2 1
      glm/detail/setup.hpp
  2. 1 1
      glm/ext.hpp
  3. 1 1
      glm/gtc/quaternion.inl
  4. 1 1
      test/gtx/gtx_io.cpp

+ 2 - 1
glm/detail/setup.hpp

@@ -483,7 +483,8 @@
 #endif
 
 ///////////////////////////////////////////////////////////////////////////////////
-// Clip control
+// Clip control, define GLM_FORCE_DEPTH_ZERO_TO_ONE before including GLM
+// to use a clip space between 0 to 1.
 
 #define GLM_DEPTH_ZERO_TO_ONE				0x00000001
 #define GLM_DEPTH_NEGATIVE_ONE_TO_ONE		0x00000002

+ 1 - 1
glm/ext.hpp

@@ -36,7 +36,7 @@
 #include "./gtc/type_ptr.hpp"
 #include "./gtc/ulp.hpp"
 #include "./gtc/vec1.hpp"
-#if GLM_HAS_ANONYMOUS_STRUCT
+#if GLM_USE_ALIGNED_GENTYPES == GLM_ENABLE
 #	include "./gtc/type_aligned.hpp"
 #endif
 

+ 1 - 1
glm/gtc/quaternion.inl

@@ -799,7 +799,7 @@ namespace detail
 	}
 }//namespace glm
 
-#if (GLM_ARCH & GLM_ARCH_SIMD_BIT) && (GLM_HAS_ANONYMOUS_STRUCT)
+#if GLM_USE_SIMD == GLM_ENABLE
 #	include "quaternion_simd.inl"
 #endif
 

+ 1 - 1
test/gtx/gtx_io.cpp

@@ -20,7 +20,7 @@ namespace
 			case glm::highp:			os << "uhi"; break;
 			case glm::mediump:			os << "umd"; break;
 			case glm::lowp:				os << "ulo"; break;
-#			if GLM_HAS_ANONYMOUS_STRUCT
+#			if GLM_USE_ALIGNED_GENTYPES == GLM_ENABLE
 				case glm::aligned_highp:	os << "ahi"; break;
 				case glm::aligned_mediump:	os << "amd"; break;
 				case glm::aligned_lowp:		os << "alo"; break;