فهرست منبع

Removed useless GLM_FORCE_ALIGNED_GENTYPES

Christophe Riccio 7 سال پیش
والد
کامیت
0fb8b56f63
5فایلهای تغییر یافته به همراه2 افزوده شده و 6 حذف شده
  1. 1 1
      glm/detail/setup.hpp
  2. 1 1
      glm/gtc/type_aligned.hpp
  3. 0 2
      test/core/core_force_aligned_gentypes.cpp
  4. 0 1
      test/gtc/gtc_type_aligned.cpp
  5. 0 1
      test/gtx/gtx_load.cpp

+ 1 - 1
glm/detail/setup.hpp

@@ -585,7 +585,7 @@ namespace glm
 ///////////////////////////////////////////////////////////////////////////////////
 // Configure the use of aligned gentypes
 
-#if defined(GLM_FORCE_ALIGNED_GENTYPES) && GLM_HAS_ALIGNOF && (GLM_LANG & GLM_LANG_CXXMS_FLAG)
+#if GLM_HAS_ALIGNOF && (GLM_LANG & GLM_LANG_CXXMS_FLAG)
 #	define GLM_USE_ALIGNED_GENTYPES GLM_ENABLE
 #else
 #	define GLM_USE_ALIGNED_GENTYPES GLM_DISABLE

+ 1 - 1
glm/gtc/type_aligned.hpp

@@ -13,7 +13,7 @@
 #pragma once
 
 #if !GLM_USE_ANONYMOUS_STRUCT
-#	error "GLM: Aligned gentypes require to enable C++ language extensions and to define GLM_FORCE_ALIGNED_GENTYPES before including GLM headers."
+#	error "GLM: Aligned gentypes require to enable C++ language extensions."
 #endif
 
 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)

+ 0 - 2
test/core/core_force_aligned_gentypes.cpp

@@ -1,5 +1,3 @@
-#define GLM_FORCE_ALIGNED_GENTYPES
-
 #include <glm/glm.hpp>
 #include <glm/ext.hpp>
 

+ 0 - 1
test/gtc/gtc_type_aligned.cpp

@@ -1,4 +1,3 @@
-#define GLM_FORCE_ALIGNED_GENTYPES
 #include <glm/glm.hpp>
 
 #if GLM_USE_ALIGNED_GENTYPES == GLM_ENABLE

+ 0 - 1
test/gtx/gtx_load.cpp

@@ -1,4 +1,3 @@
-#define GLM_FORCE_ALIGNED_GENTYPES
 #define GLM_ENABLE_EXPERIMENTAL
 #include <glm/glm.hpp>
 /*