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

Fixed Android build issue, STL C++11 is not supported by the NDK #284

Christophe Riccio 11 жил өмнө
parent
commit
459fe3a3fe
2 өөрчлөгдсөн 7 нэмэгдсэн , 0 устгасан
  1. 6 0
      glm/detail/setup.hpp
  2. 1 0
      readme.txt

+ 6 - 0
glm/detail/setup.hpp

@@ -453,11 +453,17 @@
 // http://msdn.microsoft.com/en-us/library/vstudio/hh567368(v=vs.120).aspx
 
 // N1720
+/*
 #if GLM_COMPILER & GLM_COMPILER_CLANG
 #	define GLM_HAS_CXX11_STL (GLM_LANG & GLM_LANG_CXX11_FLAG) && __has_include(<__config>)
 #else
 #	define GLM_HAS_CXX11_STL (GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2015)
 #endif
+*/
+#define GLM_HAS_CXX11_STL ((GLM_PLATFORM != GLM_PLATFORM_ANDROID) && (\
+	(GLM_LANG & GLM_LANG_CXX11_FLAG) || \
+	((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC48)) || \
+	((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2015))))
 
 // N1720
 #define GLM_HAS_STATIC_ASSERT ( \

+ 1 - 0
readme.txt

@@ -69,6 +69,7 @@ Fixes:
 - Fixed scalar uaddCarry build error with Cuda #276
 - Fixed C++11 explicit conversion operators detection #282
 - Fixed missing explicit convertion when using integer log2 with *vec1 types
+- Fixed Android build issue, STL C++11 is not supported by the NDK #284
 
 ================================================================================
 GLM 0.9.6.0: 2014-11-30