Haiku: 32bit fixes

For historical reasons int32 and int32_t are not compatible types.
This commit is contained in:
François Revol 2025-02-15 01:47:18 +01:00 committed by Carter Li
parent f3e54f33c2
commit c64854804d
3 changed files with 3 additions and 3 deletions

View File

@ -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";

View File

@ -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;)
{

View File

@ -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;