From e71c98c5eba1e214aa5d28e30eb1677c11f5a9b3 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sun, 29 May 2016 15:32:23 +0200 Subject: [PATCH] Fixed GCC build --- glm/detail/func_common.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index e573be98..283949ec 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -40,7 +40,7 @@ namespace glm { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'trunc' only accept floating-point inputs"); - return x < static_cast(0) ? -floor(-x) : floor(x); + return x < static_cast(0) ? -std::floor(-x) : std::floor(x); } # endif