diff --git a/Makefile.vc b/Makefile.vc index da9063cb..563fb01f 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -114,6 +114,7 @@ CFGSET = TRUE X_OBJS= \ $(DIROBJ)\dec\bits.obj \ $(DIROBJ)\dec\dsp.obj \ + $(DIROBJ)\dec\dsp_sse2.obj \ $(DIROBJ)\dec\frame.obj \ $(DIROBJ)\dec\quant.obj \ $(DIROBJ)\dec\tree.obj \ diff --git a/src/dec/dsp.c b/src/dec/dsp.c index e1eea15b..59ba1a3f 100644 --- a/src/dec/dsp.c +++ b/src/dec/dsp.c @@ -730,7 +730,7 @@ void VP8DspInit(void) { // If defined, use CPUInfo() to overwrite some pointers with faster versions. if (VP8DecGetCPUInfo) { if (VP8DecGetCPUInfo(kSSE2)) { -#if defined(__SSE2__) +#if defined(__SSE2__) || defined(_MSC_VER) VP8DspInitSSE2(); #endif } diff --git a/src/dec/dsp_sse2.c b/src/dec/dsp_sse2.c index f42a1a00..63cf61b9 100644 --- a/src/dec/dsp_sse2.c +++ b/src/dec/dsp_sse2.c @@ -10,7 +10,7 @@ // Author: somnath@google.com (Somnath Banerjee) // cduvivier@google.com (Christian Duvivier) -#if defined(__SSE2__) +#if defined(__SSE2__) || defined(_MSC_VER) #include #include "vp8i.h"