Skip to content
Snippets Groups Projects
Commit 3806bab2 authored by Scott Graham's avatar Scott Graham Committed by Johann
Browse files

Get libvpx to compile on VS2013.

`round` is defined in the runtime library now.
https://codereview.chromium.org/23922008/

Change-Id: I3852740058d32f63ce283579acbe284865e32dba
parent c222b96b
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,8 @@ void vpx_reset_mmx_state(void); ...@@ -24,8 +24,8 @@ void vpx_reset_mmx_state(void);
#define vp9_clear_system_state() #define vp9_clear_system_state()
#endif #endif
#ifdef _MSC_VER #if defined(_MSC_VER) && _MSC_VER < 1800
// round is not defined in MSVC // round is not defined in MSVC before VS2013.
static int round(double x) { static int round(double x) {
if (x < 0) if (x < 0)
return (int)ceil(x - 0.5); return (int)ceil(x - 0.5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment