haiku: use uint32 instead of uint32_t (#4754)
Haiku has parallel types to stdint.h, and their APIs use these
types. In the Haiku-specific haiku.h file, it is passing an
address of a uint32_t to get_cpu_topology_info(), that expects
the other uint32:
648fa5897c/src/system/libroot/os/system_info.cpp (L187)
You get an "incompatible-pointer-types" warning in gcc if the
warnings are turned up. But if you pass the pointer to Haiku's
notion of uint32, then the warning goes away.
This commit is contained in:
parent
bcc799a16e
commit
bf6c8870dc
@ -120,7 +120,7 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
|
|||||||
int i;
|
int i;
|
||||||
status_t status;
|
status_t status;
|
||||||
system_info system;
|
system_info system;
|
||||||
uint32_t topology_count;
|
uint32 topology_count; /* Haiku expects address of uint32, not uint32_t */
|
||||||
uint64_t cpuspeed;
|
uint64_t cpuspeed;
|
||||||
uv_cpu_info_t* cpu_info;
|
uv_cpu_info_t* cpu_info;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user