Browse Source

Fixed GCC build

Christophe Riccio 9 years ago
parent
commit
e71c98c5eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/detail/func_common.inl

+ 1 - 1
glm/detail/func_common.inl

@@ -40,7 +40,7 @@ namespace glm
 		{
 			GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'trunc' only accept floating-point inputs");
 
-			return x < static_cast<genType>(0) ? -floor(-x) : floor(x);
+			return x < static_cast<genType>(0) ? -std::floor(-x) : std::floor(x);
 		}
 #	endif