mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
API restricted on WinRT partially removed from core.
Additional CMAKE flag WITH_WINRT added.
This commit is contained in:
@@ -453,7 +453,11 @@ int cv::getNumberOfCPUs(void)
|
||||
{
|
||||
#if defined WIN32 || defined _WIN32
|
||||
SYSTEM_INFO sysinfo;
|
||||
#if defined(_M_ARM) || defined(_M_X64) || defined(HAVE_WINRT)
|
||||
GetNativeSystemInfo( &sysinfo );
|
||||
#else
|
||||
GetSystemInfo( &sysinfo );
|
||||
#endif
|
||||
|
||||
return (int)sysinfo.dwNumberOfProcessors;
|
||||
#elif defined ANDROID
|
||||
|
||||
Reference in New Issue
Block a user