Fixing Windows compilation errors.
This commit is contained in:
parent
1ce68ca7fe
commit
7d93795c10
|
@ -22,7 +22,7 @@ xe_pal_win_t* pal;
|
|||
|
||||
void xe_pal_dealloc();
|
||||
int xe_pal_init(xe_pal_options_t options) {
|
||||
pal = (xe_pal_win_t)xe_calloc(sizeof(pal));
|
||||
pal = (xe_pal_win_t*)xe_calloc(sizeof(xe_pal_win_t));
|
||||
|
||||
// Get QPC timing frequency... hopefully stable over the life of the app,
|
||||
// but likely not.
|
||||
|
@ -103,7 +103,7 @@ int xe_pal_get_system_info(xe_system_info* out_info) {
|
|||
if (buffer[n].ProcessorCore.Flags == 1) {
|
||||
// Hyper-threaded.
|
||||
// The number of processors is set as bits in ProcessorMask.
|
||||
out_info.processors.logical_count +=
|
||||
out_info->processors.logical_count +=
|
||||
CountSetBits(buffer[n].ProcessorMask);
|
||||
} else {
|
||||
// A real core - just count as one.
|
||||
|
|
|
@ -11,5 +11,7 @@
|
|||
|
||||
|
||||
const xechar_t* xe_path_get_tmp(const xechar_t* prefix) {
|
||||
//
|
||||
//
|
||||
XEASSERTALWAYS();
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#endif
|
||||
#include <SDKDDKVer.h>
|
||||
#include <windows.h>
|
||||
#include <ObjBase.h>
|
||||
#undef min
|
||||
#undef max
|
||||
#endif // WINCE || WIN32
|
||||
|
|
Loading…
Reference in New Issue