Skip to content

Commit

Permalink
gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Dec 19, 2023
1 parent 467e84a commit 769a300
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 5 additions & 2 deletions glm/gtx/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# endif
#endif

#include <functional>

#include "../vec2.hpp"
#include "../vec3.hpp"
#include "../vec4.hpp"
Expand All @@ -46,6 +44,9 @@
# error "GLM_GTX_hash requires C++11 standard library support"
#endif

#if GLM_LANG & GLM_LANG_CXX11
#include <functional>

namespace std
{
template<typename T, glm::qualifier Q>
Expand Down Expand Up @@ -140,3 +141,5 @@ namespace std
} // namespace std

#include "hash.inl"

#endif //GLM_LANG & GLM_LANG_CXX11
9 changes: 5 additions & 4 deletions test/gtx/gtx_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <glm/gtx/hash.hpp>
#include <map>

#if GLM_LANG& GLM_LANG_CXX11
int test_compile()
{
int Error = 0;
Expand Down Expand Up @@ -47,10 +48,10 @@ int test_compile()

int main()
{
int Error = 0;
int Error = 0;

Error += test_compile();
Error += test_compile();

return Error;
return Error;
}

#endif//GLM_LANG& GLM_LANG_CXX11

0 comments on commit 769a300

Please sign in to comment.