mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Fixed Intel compiler detection
This commit is contained in:
parent
b012c80771
commit
1eac545656
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user