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