ref: 3806bab2838e73573e2fb814f5605d4092e78c3e
parent: c222b96bfd5f834ef7075111314a7dfa68b39cb7
author: Scott Graham <scottmg@chromium.org>
date: Fri Oct 11 10:27:00 EDT 2013
Get libvpx to compile on VS2013. `round` is defined in the runtime library now. https://codereview.chromium.org/23922008/ Change-Id: I3852740058d32f63ce283579acbe284865e32dba
--- a/vp9/common/vp9_systemdependent.h
+++ b/vp9/common/vp9_systemdependent.h
@@ -24,8 +24,8 @@
#define vp9_clear_system_state()
#endif
-#ifdef _MSC_VER
-// round is not defined in MSVC
+#if defined(_MSC_VER) && _MSC_VER < 1800
+// round is not defined in MSVC before VS2013.
static int round(double x) {
if (x < 0)
return (int)ceil(x - 0.5);
--
⑨