We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab2d7b4 commit e009bcbCopy full SHA for e009bcb
glm/gtx/hash.hpp
@@ -40,8 +40,18 @@
40
#include "../mat4x3.hpp"
41
#include "../mat4x4.hpp"
42
43
-#if __cplusplus < 201103L
44
-#pragma message("GLM_GTX_hash requires C++11 standard library support")
+#if defined(_MSC_VER)
+ // MSVC uses _MSVC_LANG instead of __cplusplus
45
+ #if _MSVC_LANG < 201103L
46
+ #pragma message("GLM_GTX_hash requires C++11 standard library support")
47
+ #endif
48
+#elif defined(__GNUC__) || defined(__clang__)
49
+ // GNU and Clang use __cplusplus
50
+ #if __cplusplus < 201103L
51
52
53
+#else
54
+ #error "Unknown compiler"
55
#endif
56
57
#if GLM_LANG & GLM_LANG_CXX11
0 commit comments