mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2025-02-20 11:43:27 +08:00
Haiku: 32bit fixes
For historical reasons int32 and int32_t are not compatible types.
This commit is contained in:
parent
f3e54f33c2
commit
c64854804d
@ -10,7 +10,7 @@ const char* ffDetectCPUImpl(FF_MAYBE_UNUSED const FFCPUOptions* options, FFCPURe
|
||||
if (get_system_info(&sysInfo) != B_OK)
|
||||
return "get_system_info() failed";
|
||||
|
||||
uint32_t topoNodeCount = 0;
|
||||
uint32 topoNodeCount = 0;
|
||||
get_cpu_topology_info(NULL, &topoNodeCount);
|
||||
if (topoNodeCount == 0)
|
||||
return "get_cpu_topology_info(NULL) failed";
|
||||
|
@ -8,7 +8,7 @@ extern "C"
|
||||
|
||||
const char* ffDetectDisksImpl(FF_MAYBE_UNUSED FFDiskOptions* options, FF_MAYBE_UNUSED FFlist* disks)
|
||||
{
|
||||
int pos = 0;
|
||||
int32 pos = 0;
|
||||
|
||||
for (dev_t dev; (dev = next_dev(&pos)) >= B_OK;)
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ const char* ffDetectSound(FF_MAYBE_UNUSED FFlist* devices /* List of FFSoundDevi
|
||||
|
||||
roster->GetAudioOutput(&mediaNode);
|
||||
|
||||
int32_t mediaOutputCount = 0;
|
||||
int32 mediaOutputCount = 0;
|
||||
roster->GetAllOutputsFor(mediaNode, NULL, 0, &mediaOutputCount);
|
||||
if (mediaOutputCount == 0)
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user