diff --git a/libs/pbd/cpus.cc b/libs/pbd/cpus.cc index 0f73d51027..ffb11871ba 100644 --- a/libs/pbd/cpus.cc +++ b/libs/pbd/cpus.cc @@ -28,6 +28,8 @@ #include #include #include +#elif defined(PLATFORM_WINDOWS) +#include #endif #include "pbd/cpus.h" @@ -48,6 +50,10 @@ hardware_concurrency() #elif defined(HAVE_UNISTD) && defined(_SC_NPROCESSORS_ONLN) int const count=sysconf(_SC_NPROCESSORS_ONLN); return (count>0)?count:0; +#elif defined(PLATFORM_WINDOWS) + SYSTEM_INFO sys_info; + GetSystemInfo( &sys_info ); + return sys_info.dwNumberOfProcessors; #else return 0; #endif