win compile fix

svn path=/trunk/boinc/; revision=23215
This commit is contained in:
David Anderson 2011-03-10 22:01:56 +00:00
parent 4d21b4960a
commit 1141c18265
1 changed files with 3 additions and 0 deletions

View File

@ -996,6 +996,9 @@ int get_processor_features(char* vendor, char* features, int features_size) {
// Returns the CPU count
//
typedef DWORD (WINAPI *GAPC)(WORD);
#ifndef ALL_PROCESSOR_GROUPS
#define ALL_PROCESSOR_GROUPS 0xffff
#endif
int get_processor_count(int& processor_count) {
GAPC gapc = (GAPC) GetProcAddress(
GetModuleHandle(_T("kernel32.dll")),