diff options
author | Ghislain MARY <ghislainmary2@gmail.com> | 2015-07-28 16:37:09 +0200 |
---|---|---|
committer | James Zern <jzern@google.com> | 2015-08-05 14:45:16 -0700 |
commit | 3067c34c5ae5ea94fc4b059a26c385408912e9ce (patch) | |
tree | aaf7a3cad9629dac1fb97321626b3f8f0610e2db /vp8 | |
parent | 23591322cfe8f9e88d150ff737e0773293012f32 (diff) | |
download | libvpx-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.c | 5 |
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; } |