Fixed Intel compiler detection

This commit is contained in:
Christophe Riccio 2012-09-20 10:28:39 +02:00
parent b012c80771
commit 1eac545656
2 changed files with 3 additions and 10 deletions

View File

@ -817,16 +817,6 @@ namespace detail
# else # else
return std::isnan(x); return std::isnan(x);
# endif # 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 # else
return std::isnan(x); return std::isnan(x);
# endif # endif

View File

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