From 9beb89c1e392b94afd6ed3b4f70b71c2048f40bb Mon Sep 17 00:00:00 2001 From: thedmd Date: Sun, 20 Nov 2022 07:25:43 +0100 Subject: [PATCH] Detect MA_ORBIS and MA_PROSPERO before MA_BSD. Checking for __ORBIS__ and __PROSPERO__ first avoid identifying PS4/PS5 as BSD systems. --- miniaudio.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 64fea2cd..2c1415ab 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -3805,7 +3805,11 @@ typedef ma_uint16 wchar_t; #ifdef __unix__ #define MA_UNIX - #if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) + #ifdef __ORBIS__ + #define MA_ORBIS + #elif defined(__PROSPERO__) + #define MA_PROSPERO + #elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) #define MA_BSD #endif #endif