Skip to content
Snippets Groups Projects
Commit bbf27fed authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Merge pull request #3106 from Heather/ifdef

cbits: WIN32 guard for wider range of compilers
parents 09a71929 fcaf5d02
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
#ifndef HAS_GET_NUMBER_OF_PROCESSORS
#ifdef _WIN32
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
#include <windows.h>
#elif MACOS
#include <sys/param.h>
......@@ -18,7 +18,7 @@
#endif
int getNumberOfProcessors() {
#ifdef WIN32
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
SYSTEM_INFO sysinfo;
GetSystemInfo(&sysinfo);
return sysinfo.dwNumberOfProcessors;
......
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