diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index 5df8e7ab..5200b675 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -547,8 +547,9 @@ #endif // Not standard -#define GLM_HAS_ANONYMOUS_UNION (GLM_LANG & GLM_LANG_CXXMS_FLAG) - +#define GLM_HAS_ANONYMOUS_UNION ( \ + (GLM_LANG & GLM_LANG_CXXMS_FLAG) || \ + ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_CUDA))) ///////////////// // Platform