From a7fb9f31fd1b4f34afa14562b44adf59b86617b5 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Mon, 10 Dec 2012 14:07:33 +0100 Subject: [PATCH] Fixed bug #13, ICC built on Linux --- glm/gtc/ulp.inl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glm/gtc/ulp.inl b/glm/gtc/ulp.inl index bdd51fd3..2875c68f 100644 --- a/glm/gtc/ulp.inl +++ b/glm/gtc/ulp.inl @@ -188,12 +188,12 @@ namespace detail #pragma warning(pop) -#if((GLM_COMPILER & GLM_COMPILER_VC) || (GLM_COMPILER & GLM_COMPILER_INTEL)) +#if((GLM_COMPILER & GLM_COMPILER_VC) || ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_PLATFORM & GLM_PLATFORM_WINDOWS))) # define GLM_NEXT_AFTER_FLT(x, toward) glm::detail::nextafterf((x), (toward)) -# define GLM_NEXT_AFTER_DBL(x, toward) _nextafter((x), (toward)) +# define GLM_NEXT_AFTER_DBL(x, toward) _nextafter((x), (toward)) #else -# define GLM_NEXT_AFTER_FLT(x, toward) nextafterf((x), (toward)) -# define GLM_NEXT_AFTER_DBL(x, toward) nextafter((x), (toward)) +# define GLM_NEXT_AFTER_FLT(x, toward) nextafterf((x), (toward)) +# define GLM_NEXT_AFTER_DBL(x, toward) nextafter((x), (toward)) #endif namespace glm