FAudio icon indicating copy to clipboard operation
FAudio copied to clipboard

Bool size in Darwin ppc ABI is 4-byte (Windows too?)

Open barracuda156 opened this issue 11 months ago • 8 comments

Apparently on Windows bool is also 4-byte, according to: https://github.com/FNA-XNA/FAudio/commit/d0a90be6984cde9ea37715b2607930eb227877c1 However tests header defined bool as uint8_t: https://github.com/FNA-XNA/FAudio/blob/c5f82468756471ec23efea1481e559038f01317b/tests/FAudio_compat.h#L5

I am not sure about how it works on Windows; to accommodate Darwin ppc it will be needed to do smth like:

#if defined(__APPLE__) && defined(__ppc__)
typedef uint32_t BOOL;
#else
typedef uint8_t BOOL;
#endif

barracuda156 avatar Jul 22 '23 17:07 barracuda156