From e769aeee801a301018d7f5e610dab9d968dbdbc9 Mon Sep 17 00:00:00 2001 From: Luc Trudeau Date: Thu, 14 Jun 2018 11:21:05 -0400 Subject: [PATCH] include msvc.h for snprintf support in benchmarks include vpx_ports/msvc.h to avoid issues with snprintf issues with MSVC. Change-Id: Ida09cff8ee3b84e09fd61de131f84b32c113fa1a --- test/sad_test.cc | 2 +- test/vp9_quantize_test.cc | 1 + test/vp9_subtract_test.cc | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/sad_test.cc b/test/sad_test.cc index cef23e19f..0902df70a 100644 --- a/test/sad_test.cc +++ b/test/sad_test.cc @@ -10,7 +10,6 @@ #include #include -#include #include "third_party/googletest/src/include/gtest/gtest.h" @@ -24,6 +23,7 @@ #include "vpx/vpx_codec.h" #include "vpx_mem/vpx_mem.h" #include "vpx_ports/mem.h" +#include "vpx_ports/msvc.h" #include "vpx_ports/vpx_timer.h" template diff --git a/test/vp9_quantize_test.cc b/test/vp9_quantize_test.cc index ee5752316..0b106fb69 100644 --- a/test/vp9_quantize_test.cc +++ b/test/vp9_quantize_test.cc @@ -27,6 +27,7 @@ #include "vp9/common/vp9_scan.h" #include "vpx/vpx_codec.h" #include "vpx/vpx_integer.h" +#include "vpx_ports/msvc.h" #include "vpx_ports/vpx_timer.h" using libvpx_test::ACMRandom; diff --git a/test/vp9_subtract_test.cc b/test/vp9_subtract_test.cc index 5a25a550a..67e8de6c7 100644 --- a/test/vp9_subtract_test.cc +++ b/test/vp9_subtract_test.cc @@ -18,6 +18,7 @@ #include "test/clear_system_state.h" #include "test/register_state_check.h" #include "vp9/common/vp9_blockd.h" +#include "vpx_ports/msvc.h" #include "vpx_mem/vpx_mem.h" typedef void (*SubtractFunc)(int rows, int cols, int16_t *diff_ptr, -- 2.40.0