|
@@ -110,6 +110,17 @@
|
|
|
|
|
|
|
|
#define GLM_COMPILER_UNKNOWN 0x00000000
|
|
#define GLM_COMPILER_UNKNOWN 0x00000000
|
|
|
|
|
|
|
|
|
|
+// Intel
|
|
|
|
|
+#define GLM_COMPILER_INTEL 0x00100000
|
|
|
|
|
+#define GLM_COMPILER_INTEL9 0x00100010
|
|
|
|
|
+#define GLM_COMPILER_INTEL10_0 0x00100020
|
|
|
|
|
+#define GLM_COMPILER_INTEL10_1 0x00100030
|
|
|
|
|
+#define GLM_COMPILER_INTEL11_0 0x00100040
|
|
|
|
|
+#define GLM_COMPILER_INTEL11_1 0x00100050
|
|
|
|
|
+#define GLM_COMPILER_INTEL12_0 0x00100060
|
|
|
|
|
+#define GLM_COMPILER_INTEL12_1 0x00100070
|
|
|
|
|
+#define GLM_COMPILER_INTEL13_0 0x00100080
|
|
|
|
|
+
|
|
|
// Visual C++ defines
|
|
// Visual C++ defines
|
|
|
#define GLM_COMPILER_VC 0x01000000
|
|
#define GLM_COMPILER_VC 0x01000000
|
|
|
#define GLM_COMPILER_VC2 0x01000010
|
|
#define GLM_COMPILER_VC2 0x01000010
|
|
@@ -187,17 +198,6 @@
|
|
|
// LLVM GCC
|
|
// LLVM GCC
|
|
|
#define GLM_COMPILER_LLVM_GCC 0x40000000
|
|
#define GLM_COMPILER_LLVM_GCC 0x40000000
|
|
|
|
|
|
|
|
-// Intel
|
|
|
|
|
-#define GLM_COMPILER_INTEL 0x80000000
|
|
|
|
|
-#define GLM_COMPILER_INTEL9 0x80000010
|
|
|
|
|
-#define GLM_COMPILER_INTEL10_0 0x80000020
|
|
|
|
|
-#define GLM_COMPILER_INTEL10_1 0x80000030
|
|
|
|
|
-#define GLM_COMPILER_INTEL11_0 0x80000040
|
|
|
|
|
-#define GLM_COMPILER_INTEL11_1 0x80000050
|
|
|
|
|
-#define GLM_COMPILER_INTEL12_0 0x80000060
|
|
|
|
|
-#define GLM_COMPILER_INTEL12_1 0x80000070
|
|
|
|
|
-#define GLM_COMPILER_INTEL13_0 0x80000080
|
|
|
|
|
-
|
|
|
|
|
// Build model
|
|
// Build model
|
|
|
#define GLM_MODEL_32 0x00000010
|
|
#define GLM_MODEL_32 0x00000010
|
|
|
#define GLM_MODEL_64 0x00000020
|
|
#define GLM_MODEL_64 0x00000020
|
|
@@ -431,6 +431,19 @@
|
|
|
#else
|
|
#else
|
|
|
# if(__cplusplus >= 201103L)
|
|
# if(__cplusplus >= 201103L)
|
|
|
# define GLM_LANG GLM_LANG_CXX11
|
|
# define GLM_LANG GLM_LANG_CXX11
|
|
|
|
|
+# elif((GLM_COMPILER & GLM_COMPILER_CLANG) == GLM_COMPILER_CLANG)
|
|
|
|
|
+# if(GLM_PLATFORM == GLM_PLATFORM_APPLE)
|
|
|
|
|
+# define GLM_DETAIL_MAJOR 1
|
|
|
|
|
+# else
|
|
|
|
|
+# define GLM_DETAIL_MAJOR 0
|
|
|
|
|
+# endif
|
|
|
|
|
+# if(__clang_major__ < (2 + GLM_DETAIL_MAJOR))
|
|
|
|
|
+# define GLM_LANG GLM_LANG_CXX
|
|
|
|
|
+# elif(__has_feature(cxx_auto_type))
|
|
|
|
|
+# define GLM_LANG GLM_LANG_CXX0X
|
|
|
|
|
+# else
|
|
|
|
|
+# define GLM_LANG GLM_LANG_CXX98
|
|
|
|
|
+# endif
|
|
|
# elif((GLM_COMPILER & GLM_COMPILER_GCC) == GLM_COMPILER_GCC)
|
|
# elif((GLM_COMPILER & GLM_COMPILER_GCC) == GLM_COMPILER_GCC)
|
|
|
# if defined(__GXX_EXPERIMENTAL_CXX0X__)
|
|
# if defined(__GXX_EXPERIMENTAL_CXX0X__)
|
|
|
# define GLM_LANG GLM_LANG_CXX0X
|
|
# define GLM_LANG GLM_LANG_CXX0X
|