2
0
Эх сурвалжийг харах

Fixed Intel compiler build error on Linux #354

Christophe Riccio 10 жил өмнө
parent
commit
9e2f6dfc7f
2 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 3 2
      glm/detail/setup.hpp
  2. 1 0
      readme.md

+ 3 - 2
glm/detail/setup.hpp

@@ -537,12 +537,13 @@
 
 #if GLM_PLATFORM == GLM_PLATFORM_ANDROID
 #	define GLM_HAS_CXX11_STL 0
-#elif GLM_COMPILER & (GLM_COMPILER_LLVM | GLM_COMPILER_APPLE_CLANG | GLM_COMPILER_INTEL)
+#elif GLM_COMPILER & (GLM_COMPILER_LLVM | GLM_COMPILER_APPLE_CLANG)
 #	define GLM_HAS_CXX11_STL __has_include("__config")
 #else
 #	define GLM_HAS_CXX11_STL ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && \
 		((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC48)) || \
-		((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2013)))
+		((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2013)) || \
+		((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_COMPILER >= GLM_COMPILER_INTEL15)))
 #endif
 
 // N1720

+ 1 - 0
readme.md

@@ -76,6 +76,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
 - Fixed perspective fovy argument documentation #327
 - Removed -m64 causing build issues on Linux 32 #331
 - Fixed isfinite with C++98 compilers #343
+- Fixed Intel compiler build error on Linux #354
 
 ##### Deprecation:
 - Removed integer specification for 'mod' in GTC_integer #308