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