mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 07:18:54 +00:00
Fix GLM_GTX_hash, requires C++ 11
This commit is contained in:
parent
b269dce26b
commit
e863b6e38c
2 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@
|
|||
#include "../mat4x3.hpp"
|
||||
#include "../mat4x4.hpp"
|
||||
|
||||
#if !GLM_HAS_CXX11_STL
|
||||
#if __cplusplus >= 201103L
|
||||
#pragma message("GLM_GTX_hash requires C++11 standard library support")
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define GLM_ENABLE_EXPERIMENTAL
|
||||
#include <glm/gtx/hash.hpp>
|
||||
|
||||
#if defined(GLM_GTX_hash) && GLM_LANG & GLM_LANG_CXX11
|
||||
#if defined(GLM_GTX_hash) && __cplusplus >= 201103L
|
||||
#include <unordered_map>
|
||||
|
||||
int test_compile()
|
||||
|
@ -46,13 +46,13 @@ int test_compile()
|
|||
|
||||
return Error > 0 ? 0 : 1;
|
||||
}
|
||||
#endif//GLM_LANG& GLM_LANG_CXX11
|
||||
#endif//defined(GLM_GTX_hash) && __cplusplus >= 201103L
|
||||
|
||||
int main()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
#if defined(GLM_GTX_hash)
|
||||
#if defined(GLM_GTX_hash) && __cplusplus >= 201103L
|
||||
Error += test_compile();
|
||||
#endif//
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue