From f751d7e1b805e88e019fa9fa3b4ec500cfb5a471 Mon Sep 17 00:00:00 2001 From: dhewg Date: Mon, 12 Dec 2011 22:58:39 +0100 Subject: [PATCH] Protect __m128i intrinsic with __SSE2__ --- neo/renderer/tr_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/renderer/tr_main.cpp b/neo/renderer/tr_main.cpp index a1fbfcc2..d5795674 100644 --- a/neo/renderer/tr_main.cpp +++ b/neo/renderer/tr_main.cpp @@ -33,7 +33,7 @@ If you have questions concerning this license or the applicable additional terms #ifdef __ppc__ #include #endif -#if defined(MACOS_X) && defined(__i386__) +#if defined(__GNUC__) && defined(__SSE2__) #include #endif @@ -468,7 +468,7 @@ void R_AxisToModelMatrix( const idMat3 &axis, const idVec3 &origin, float modelM // FIXME: these assume no skewing or scaling transforms void R_LocalPointToGlobal( const float modelMatrix[16], const idVec3 &in, idVec3 &out ) { -#if defined(MACOS_X) && defined(__i386__) +#if defined(__GNUC__) && defined(__SSE2__) __m128 m0, m1, m2, m3; __m128 in0, in1, in2; float i0,i1,i2;