mirror of
https://github.com/g-truc/glm.git
synced 2024-11-25 18:04:34 +00:00
Update hash.hpp to detect msvc
this causes errors when building on windows with cl
This commit is contained in:
parent
ab2d7b4291
commit
e009bcbe7c
@ -40,9 +40,19 @@
|
|||||||
#include "../mat4x3.hpp"
|
#include "../mat4x3.hpp"
|
||||||
#include "../mat4x4.hpp"
|
#include "../mat4x4.hpp"
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
// MSVC uses _MSVC_LANG instead of __cplusplus
|
||||||
|
#if _MSVC_LANG < 201103L
|
||||||
|
#pragma message("GLM_GTX_hash requires C++11 standard library support")
|
||||||
|
#endif
|
||||||
|
#elif defined(__GNUC__) || defined(__clang__)
|
||||||
|
// GNU and Clang use __cplusplus
|
||||||
#if __cplusplus < 201103L
|
#if __cplusplus < 201103L
|
||||||
#pragma message("GLM_GTX_hash requires C++11 standard library support")
|
#pragma message("GLM_GTX_hash requires C++11 standard library support")
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#error "Unknown compiler"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if GLM_LANG & GLM_LANG_CXX11
|
#if GLM_LANG & GLM_LANG_CXX11
|
||||||
#define GLM_GTX_hash 1
|
#define GLM_GTX_hash 1
|
||||||
|
Loading…
Reference in New Issue
Block a user