Browse Source

Fixed bug #13, ICC built on Linux

Christophe Riccio 13 years ago
parent
commit
a7fb9f31fd
1 changed files with 4 additions and 4 deletions
  1. 4 4
      glm/gtc/ulp.inl

+ 4 - 4
glm/gtc/ulp.inl

@@ -188,12 +188,12 @@ namespace detail
 
 
 #pragma warning(pop)
 #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_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
 #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
 #endif
 
 
 namespace glm
 namespace glm