Check for immintrin.h before using it in SDL_cpuinfo.h
This commit is contained in:
@@ -580,6 +580,8 @@ if(ASSEMBLY)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
check_include_file("immintrin.h" HAVE_IMMINTRIN_H)
|
||||
|
||||
if(ALTIVEC)
|
||||
set(CMAKE_REQUIRED_FLAGS "-maltivec")
|
||||
check_c_source_compiles("
|
||||
|
||||
Reference in New Issue
Block a user