]> granicus.if.org Git - libvpx/commitdiff
Get test to build with MSVC
authorYaowu Xu <yaowu@google.com>
Mon, 9 Nov 2015 20:07:25 +0000 (12:07 -0800)
committerYaowu Xu <yaowu@google.com>
Mon, 9 Nov 2015 20:07:25 +0000 (12:07 -0800)
Added _USE_MATH_DEFINES to make sure M_PI can be refered to definitions
in math.h for MSVC

Change-Id: Idca128910384593a002eb08bae72c739fb998e19

test/vp10_txfm_test.h

index 58e16c175f096bf4795b0940acdc3cc15a720bb9..967d38bd81afeddaad36c960d947d6e7be640c8c 100644 (file)
@@ -13,6 +13,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef _MSC_VER
+#define _USE_MATH_DEFINES
+#endif
 #include <math.h>
 
 #include "third_party/googletest/src/include/gtest/gtest.h"