Skip to content

Commit

Permalink
Fix GLM_GTX_hash, requires C++ 11
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe committed Dec 29, 2023
1 parent e863b6e commit c1fc5fe
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions test/gtx/gtx_hash.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if __cplusplus >= 201103L
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/hash.hpp>

#if defined(GLM_GTX_hash) && __cplusplus >= 201103L
#include <unordered_map>

int test_compile()
Expand Down Expand Up @@ -46,16 +46,23 @@ int test_compile()

return Error > 0 ? 0 : 1;
}
#endif//defined(GLM_GTX_hash) && __cplusplus >= 201103L

int main()
{
int Error = 0;

#if defined(GLM_GTX_hash) && __cplusplus >= 201103L
Error += test_compile();
#endif//

return Error;
}

#else

int main()
{
return 0;
}

#endif// __cplusplus >= 201103L


0 comments on commit c1fc5fe

Please sign in to comment.