Fixed CUDA support in MSVC for anonymous unions

This commit is contained in:
Hauke Rehfeld 2014-07-21 14:58:42 +02:00
parent ed3e0b64b9
commit bd868e7d2c

View File

@ -547,8 +547,9 @@
#endif #endif
// Not standard // 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 // Platform