projects
/
libvpx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c222b96
)
Get libvpx to compile on VS2013.
author
Scott Graham
<scottmg@chromium.org>
Fri, 11 Oct 2013 21:27:00 +0000
(14:27 -0700)
committer
Johann
<johannkoenig@google.com>
Fri, 11 Oct 2013 21:27:00 +0000
(14:27 -0700)
`round` is defined in the runtime library now.
https://codereview.chromium.org/
23922008
/
Change-Id: I3852740058d32f63ce283579acbe284865e32dba
vp9/common/vp9_systemdependent.h
patch
|
blob
|
history
diff --git
a/vp9/common/vp9_systemdependent.h
b/vp9/common/vp9_systemdependent.h
index b8d161d190f809b33905faa37eab2d8ceeeb9ea6..254a431a3005ed4aac06a1570685254ffe6bdda7 100644
(file)
--- a/
vp9/common/vp9_systemdependent.h
+++ b/
vp9/common/vp9_systemdependent.h
@@
-24,8
+24,8
@@
void vpx_reset_mmx_state(void);
#define vp9_clear_system_state()
#endif
-#if
def _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);