Fixed SSE detection on GCC

This commit is contained in:
Christophe Riccio
2011-01-24 15:43:46 +00:00
parent 438089295e
commit 019c6ced18
4 changed files with 13 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ namespace glm
namespace detail
{
#ifndef GLM_USE_ANONYMOUS_UNION
#ifndef _MSC_EXTENSIONS
template <>
struct tvec2<thalf>
{
@@ -319,7 +319,7 @@ namespace glm
tvec4<thalf> swizzle(comp X, comp Y, comp Z, comp W) const;
tref4<thalf> swizzle(comp X, comp Y, comp Z, comp W);
};
#endif//GLM_USE_ANONYMOUS_UNION
#endif//_MSC_EXTENSIONS
}
//namespace detail

View File

@@ -10,7 +10,7 @@
namespace glm{
namespace detail{
#ifndef GLM_USE_ANONYMOUS_UNION
#ifndef _MSC_EXTENSIONS
//////////////////////////////////////
// hvec2
@@ -969,7 +969,7 @@ inline tref4<thalf> tvec4<thalf>::swizzle(comp x, comp y, comp z, comp w)
(*this)[w]);
}
#endif//GLM_USE_ANONYMOUS_UNION
#endif//_MSC_EXTENSIONS
}//namespace detail
}//namespace glm