From: Jingning Han Date: Tue, 27 May 2014 18:30:14 +0000 (-0700) Subject: Fix compiling error in MSVS X-Git-Tag: v1.4.0~1485^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=239e68ddbfa038e29b9e332503721d6bbae806c3;p=libvpx Fix compiling error in MSVS Need to include math.h before tmmintrin.h in some versions of MSVS. Change-Id: Ia6b83ae599316887ecf30c4e4b9e4355fb8a4219 --- diff --git a/vp9/common/x86/vp9_idct_intrin_ssse3.c b/vp9/common/x86/vp9_idct_intrin_ssse3.c index 9a6980e0f..e5d3cb5f4 100644 --- a/vp9/common/x86/vp9_idct_intrin_ssse3.c +++ b/vp9/common/x86/vp9_idct_intrin_ssse3.c @@ -8,6 +8,11 @@ * be found in the AUTHORS file in the root of the source tree. */ +#if defined(_MSC_VER) && _MSC_VER <= 1500 +// Need to include math.h before calling tmmintrin.h/intrin.h +// in certain versions of MSVS. +#include +#endif #include // SSSE3 #include "vp9/common/x86/vp9_idct_intrin_sse2.h"