]> granicus.if.org Git - libvpx/commitdiff
include msvc.h for snprintf support in benchmarks
authorLuc Trudeau <luc@trud.ca>
Thu, 14 Jun 2018 15:21:05 +0000 (11:21 -0400)
committerLuc Trudeau <luc@trud.ca>
Mon, 18 Jun 2018 15:18:43 +0000 (15:18 +0000)
include vpx_ports/msvc.h to avoid issues with snprintf issues with MSVC.

Change-Id: Ida09cff8ee3b84e09fd61de131f84b32c113fa1a

test/sad_test.cc
test/vp9_quantize_test.cc
test/vp9_subtract_test.cc

index cef23e19f3a4acee193841e6cb9a9b40f17f327a..0902df70adb03acc8ab0a752a1de5010f13ff056 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <string.h>
 #include <limits.h>
-#include <stdio.h>
 
 #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 <typename Function>
index ee575231604b3c4c7213c0edc1bbe15b6456f7a6..0b106fb695931463e8a02e56e098e1c62800e840 100644 (file)
@@ -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;
index 5a25a550a57c5f75b7b94e16c9489cc27253bdba..67e8de6c74bed54b5b700228037d94112809db05 100644 (file)
@@ -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,