Fix GLM_GTX_hash, requires C++ 11

This commit is contained in:
christophe 2023-12-28 22:03:54 +01:00
parent b269dce26b
commit e863b6e38c
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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//