From 236597fd564612778f52f399d2a749c862572a69 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Fri, 3 Aug 2012 11:25:35 -0700 Subject: [PATCH] fix msvc build Change-Id: I377d50cb347f50341ab6f5f456a6a64438bcb667 --- vp8/common/idct.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vp8/common/idct.h b/vp8/common/idct.h index b670769..5336f5a 100644 --- a/vp8/common/idct.h +++ b/vp8/common/idct.h @@ -27,6 +27,13 @@ #include "x86/idct_x86.h" #endif +#ifdef _MSC_VER +/* TODO: remove these after integer implmementations are done */ +#define M_PI 3.14159265358979323846 +#define round(x) (((x)>0)? floor((x)+0.5): ceil((x)-0.5)) +#endif + + #if ARCH_ARM #include "arm/idct_arm.h" #endif -- 2.7.4