From a05659a208bc51d3de0d6efd675dc0ead6d1daf0 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 18 Apr 2009 21:14:16 +0000 Subject: [PATCH] change NOSSE2 conditional compilation. hope it still works for gcc guys --- desmume/src/matrix.cpp | 2 +- desmume/src/types.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/desmume/src/matrix.cpp b/desmume/src/matrix.cpp index f7495d778..2f9cf21d0 100644 --- a/desmume/src/matrix.cpp +++ b/desmume/src/matrix.cpp @@ -33,7 +33,7 @@ void MatrixInit (float *matrix) matrix[0] = matrix[5] = matrix[10] = matrix[15] = 1.f; } -#if not defined(WIN32) || defined(NOSSE2) +#ifdef NOSSE2 void MATRIXFASTCALL MatrixMultVec4x4 (const float *matrix, float *vecPtr) { float x = vecPtr[0]; diff --git a/desmume/src/types.h b/desmume/src/types.h index 5615c3e4c..2612502a2 100644 --- a/desmume/src/types.h +++ b/desmume/src/types.h @@ -25,6 +25,10 @@ #include "config.h" #endif +#ifndef _MSC_VER +#define NOSSE2 +#endif + #define DESMUME_NAME "DeSmuME" #ifdef _WIN64