summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorGhislain MARY <ghislainmary2@gmail.com>2015-07-28 16:37:09 +0200
committerJames Zern <jzern@google.com>2015-08-05 14:45:16 -0700
commit3067c34c5ae5ea94fc4b059a26c385408912e9ce (patch)
treeaaf7a3cad9629dac1fb97321626b3f8f0610e2db /vp8
parent23591322cfe8f9e88d150ff737e0773293012f32 (diff)
downloadlibvpx-3067c34c5ae5ea94fc4b059a26c385408912e9ce.tar
libvpx-3067c34c5ae5ea94fc4b059a26c385408912e9ce.tar.gz
libvpx-3067c34c5ae5ea94fc4b059a26c385408912e9ce.tar.bz2
libvpx-3067c34c5ae5ea94fc4b059a26c385408912e9ce.zip
Support build with Visual Studio 14.
Change-Id: Id0d7c19857e29b66c652c8cc1ab56b64e4fc0fa3
Diffstat (limited to 'vp8')
-rw-r--r--vp8/common/generic/systemdependent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vp8/common/generic/systemdependent.c b/vp8/common/generic/systemdependent.c
index 4393ced48..28dc262ae 100644
--- a/vp8/common/generic/systemdependent.c
+++ b/vp8/common/generic/systemdependent.c
@@ -45,6 +45,10 @@ static int get_cpu_count()
#endif
#elif defined(_WIN32)
{
+#if _WIN32_WINNT >= 0x0501
+ SYSTEM_INFO sysinfo;
+ GetNativeSystemInfo(&sysinfo);
+#else
PGNSI pGNSI;
SYSTEM_INFO sysinfo;
@@ -57,6 +61,7 @@ static int get_cpu_count()
pGNSI(&sysinfo);
else
GetSystemInfo(&sysinfo);
+#endif
core_count = sysinfo.dwNumberOfProcessors;
}