* uname.cc (uname): Use `wProcessorLevel' unless OS sets it wrong.

Use `dwProcessorType' then instead.
        * wincap.cc: Set flag has_valid_processorlevel appropriately.
        * wincap.h: Add flag has_valid_processorlevel.
This commit is contained in:
Corinna Vinschen
2001-10-15 09:41:18 +00:00
parent 48372ea6f1
commit 271a33443c
4 changed files with 36 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ struct wincaps
unsigned has_negative_pids : 1;
unsigned has_unreliable_pipes : 1;
unsigned has_try_enter_critical_section : 1;
unsigned has_valid_processorlevel : 1;
};
class wincapc
@@ -92,6 +93,7 @@ public:
bool IMPLEMENT (has_negative_pids)
bool IMPLEMENT (has_unreliable_pipes)
bool IMPLEMENT (has_try_enter_critical_section)
bool IMPLEMENT (has_valid_processorlevel)
#undef IMPLEMENT
};