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
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

View File

@ -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;