mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-23 04:33:24 +00:00
Don't include SSE/MMX intrinsics headers if they are not available
This commit is contained in:
parent
ab5adf0bb3
commit
b802615c36
@ -183,9 +183,9 @@ AC_HEADER_SYS_WAIT
|
||||
AC_CHECK_HEADERS(mach/vm_map.h mach/mach_init.h sys/mman.h)
|
||||
AC_CHECK_HEADERS(sys/time.h sys/times.h)
|
||||
AC_CHECK_HEADERS(unistd.h fcntl.h byteswap.h)
|
||||
AC_CHECK_HEADER(mmintrin.h, [have_mmintrin_h=yes])
|
||||
AC_CHECK_HEADER(xmmintrin.h, [have_xmmintrin_h=yes])
|
||||
AC_CHECK_HEADER(emmintrin.h, [have_emmintrin_h=yes])
|
||||
AC_CHECK_HEADERS(mmintrin.h, [have_mmintrin_h=yes])
|
||||
AC_CHECK_HEADERS(xmmintrin.h, [have_xmmintrin_h=yes])
|
||||
AC_CHECK_HEADERS(emmintrin.h, [have_emmintrin_h=yes])
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_BIGENDIAN
|
||||
|
@ -1489,7 +1489,7 @@ void op_record_cr6_VD(void)
|
||||
* SSE optimizations
|
||||
**/
|
||||
|
||||
#if defined(__SSE__)
|
||||
#if defined(__SSE__) && defined(HAVE_XMMINTRIN_H)
|
||||
#include <xmmintrin.h>
|
||||
#undef VD
|
||||
#define VD *((__m128 *)reg_VD)
|
||||
@ -1575,7 +1575,7 @@ void op_sse_vxor(void)
|
||||
* MMX optimizations
|
||||
**/
|
||||
|
||||
#if defined(__MMX__)
|
||||
#if defined(__MMX__) && defined(HAVE_MMINTRIN_H)
|
||||
#include <mmintrin.h>
|
||||
#undef VD
|
||||
#define VD ((__m64 *)reg_VD)
|
||||
|
Loading…
Reference in New Issue
Block a user