Fixed static_assert on GCC

This commit is contained in:
Christophe Riccio 2010-12-14 19:49:52 +00:00
parent 7ba75dff4b
commit 9eca6be854

View File

@ -248,7 +248,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
// Static assert
#if(GLM_COMPILER >= GLM_COMPILER_VC2010 || GLM_COMPILER >= GLM_COMPILER_GCC45)
#if((GLM_COMPILER & GLM_COMPILER_VC && GLM_COMPILER >= GLM_COMPILER_VC2010) || (GLM_COMPILER & GLM_COMPILER_GCC && GLM_COMPILER >= GLM_COMPILER_GCC45))
#define GLM_STATIC_ASSERT(x, message) static_assert(x, message)
#elif(defined(BOOST_STATIC_ASSERT))
#define GLM_STATIC_ASSERT(x, message) BOOST_STATIC_ASSERT(x)