Browse Source

Fixed Intel compiler detection

Christophe Riccio 13 years ago
parent
commit
1eac545656
2 changed files with 3 additions and 10 deletions
  1. 0 10
      glm/core/func_common.inl
  2. 3 0
      test/core/core_setup_message.cpp

+ 0 - 10
glm/core/func_common.inl

@@ -817,16 +817,6 @@ namespace detail
 #			else
 				return std::isnan(x);
 #			endif
-/*
-#       elif(GLM_COMPILER & GLM_COMPILER_GCC)
-#           if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
-                return _isnan(x) != 0;
-#           else
-                return std::isnan(x);
-#           endif
-#       elif(GLM_COMPILER & GLM_COMPILER_INTEL)
-            return _isnan(x) != 0;
-*/
 #       else
             return std::isnan(x);
 #       endif

+ 3 - 0
test/core/core_setup_message.cpp

@@ -142,6 +142,9 @@ int test_compiler()
 	case GLM_COMPILER_LLVM_GCC:
 		std::cout << "GLM_COMPILER_LLVM_GCC" << std::endl;		
 		break;
+	case GLM_COMPILER_INTEL:
+		std::cout << "GLM_COMPILER_INTEL" << std::endl;		
+		break;
 	default:
 		std::cout << "Undetected compiler" << std::endl;
 		Error += 1;