Skip to content

Commit

Permalink
Merge branch 'patch-1' of github.com:abrady/glm into fix-hash
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Mar 5, 2024
2 parents ab2d7b4 + 1b79f58 commit 07a4de1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions glm/gtx/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,18 @@
#include "../mat4x3.hpp"
#include "../mat4x4.hpp"

#if __cplusplus < 201103L
#pragma message("GLM_GTX_hash requires C++11 standard library support")
#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
#pragma message("GLM_GTX_hash requires C++11 standard library support")
#endif
#else
#error "Unknown compiler"
#endif

#if GLM_LANG & GLM_LANG_CXX11
Expand Down

0 comments on commit 07a4de1

Please sign in to comment.